This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 13 files changed +3697
-5861
lines changed
Expand file tree Collapse file tree 13 files changed +3697
-5861
lines changed Original file line number Diff line number Diff line change 77 "lockFileMaintenance" : { "enabled" : true },
88 "pin" : false ,
99 "rangeStrategy" : " replace" ,
10- "postUpdateOptions" : [" yarnDedupeHighest" ],
1110 "ignorePresets" : [" workarounds:typesNodeVersioning" ],
1211 "packageRules" : [
1312 {
Original file line number Diff line number Diff line change @@ -14,47 +14,42 @@ jobs:
1414 - name : Checkout
1515 uses : actions/checkout@v2
1616
17+ - name : Install pnpm
18+ uses : pnpm/action-setup@v2
19+ with :
20+ version : 6
21+
1722 - name : Set node version to 14
1823 uses : actions/setup-node@v2
1924 with :
2025 node-version : 14
21-
22- - name : Fetch cached dependencies
23- uses : actions/cache@v2
24- id : yarn-cache
25- with :
26- path : |
27- **/.yarn/cache
28- **/node_modules
29- key : node-14-os-ubuntu-latest-yarn-${{ hashFiles('**/yarn.lock') }}
30- restore-keys : |
31- node-14-os-ubuntu-latest-yarn-
26+ cache : ' pnpm'
3227
3328 - name : Versions
3429 run : |
35- echo "yarn : $(yarn --version)"
30+ echo "pnpm : $(pnpm --version)"
3631 echo "npm : $(npm --version)"
3732 echo "node: $(node --version)"
3833 echo "process.versions:"
39- yarn node -p process.versions
34+ pnpm node -p process.versions
4035
4136 - name : Install dependencies
42- run : yarn install --immutable
37+ run : pnpm install --frozen-lockfile
4338
4439 - name : Lint
45- run : yarn lint
40+ run : pnpm run lint
4641
4742 - name : Check
48- run : yarn check
43+ run : pnpm run check
4944
5045 - name : Audit production
51- run : yarn npm audit --all --recursive --environment production
46+ run : pnpm audit --prod
5247
5348 - name : Audit all
5449 continue-on-error : true
55- run : yarn npm audit --all --recursive
50+ run : pnpm audit
5651
5752 - name : Check outdated dependencies
5853 continue-on-error : true
5954 if : github.ref == 'refs/heads/main'
60- run : yarn outdated --url
55+ run : pnpm outdated --long
Original file line number Diff line number Diff line change 11.github /ISSUE_TEMPLATE /
22.yarn /
33.pnp.cjs
4+ pnpm-lock.yaml
45coverage /
56dist /
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77[ diff] ( https://github.com/Shinigami92/eslint-define-config/compare/1.0.9...1.1.0 )
88
99- Automatically generate rule definitions for: ([ #69 ] )
10- - ` eslint `
11- - ` @typescript-eslint `
12- - ` jsdoc `
13- - ` spellcheck `
14- - ` vue `
10+ - ` eslint `
11+ - ` @typescript-eslint `
12+ - ` jsdoc `
13+ - ` spellcheck `
14+ - ` vue `
1515
1616[ #69 ] : https://github.com/Shinigami92/eslint-define-config/pull/69
1717
Original file line number Diff line number Diff line change @@ -33,9 +33,11 @@ Provide a `defineConfig` function for `.eslintrc.js` files.
3333
3434``` bash
3535# add eslint and eslint-define-config to project’s dev dependencies
36- npm install --save-dev eslint eslint-define-config
36+ npm add --save-dev eslint eslint-define-config
3737# or
3838yarn add --dev eslint eslint-define-config
39+ # or
40+ pnpm add --save-dev eslint eslint-define-config
3941```
4042
4143# Usage
Original file line number Diff line number Diff line change 44 "description" : " Provide a defineConfig function for .eslintrc.js files" ,
55 "main" : " src/index.js" ,
66 "scripts" : {
7- "clean" : " rm -Rf dist yarn. lock node_modules" ,
7+ "clean" : " rm -Rf dist pnpm- lock.yaml node_modules" ,
88 "check" : " tsc" ,
99 "format" : " prettier --write ." ,
1010 "lint" : " eslint ." ,
1111 "test" : " echo \" No tests available\" " ,
12- "prepublishOnly" : " yarn clean && yarn install && yarn check" ,
12+ "prepublishOnly" : " pnpm run clean && pnpm install && pnpm run check" ,
1313 "generate:rules" : " esno ./scripts/generate-rule-files.ts" ,
1414 "generate" : " node ./scripts/generate-rule.js"
1515 },
You can’t perform that action at this time.
0 commit comments