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 7
7
"lockFileMaintenance" : { "enabled" : true },
8
8
"pin" : false ,
9
9
"rangeStrategy" : " replace" ,
10
- "postUpdateOptions" : [" yarnDedupeHighest" ],
11
10
"ignorePresets" : [" workarounds:typesNodeVersioning" ],
12
11
"packageRules" : [
13
12
{
Original file line number Diff line number Diff line change @@ -14,47 +14,42 @@ jobs:
14
14
- name : Checkout
15
15
uses : actions/checkout@v2
16
16
17
+ - name : Install pnpm
18
+ uses : pnpm/action-setup@v2
19
+ with :
20
+ version : 6
21
+
17
22
- name : Set node version to 14
18
23
uses : actions/setup-node@v2
19
24
with :
20
25
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'
32
27
33
28
- name : Versions
34
29
run : |
35
- echo "yarn : $(yarn --version)"
30
+ echo "pnpm : $(pnpm --version)"
36
31
echo "npm : $(npm --version)"
37
32
echo "node: $(node --version)"
38
33
echo "process.versions:"
39
- yarn node -p process.versions
34
+ pnpm node -p process.versions
40
35
41
36
- name : Install dependencies
42
- run : yarn install --immutable
37
+ run : pnpm install --frozen-lockfile
43
38
44
39
- name : Lint
45
- run : yarn lint
40
+ run : pnpm run lint
46
41
47
42
- name : Check
48
- run : yarn check
43
+ run : pnpm run check
49
44
50
45
- name : Audit production
51
- run : yarn npm audit --all --recursive --environment production
46
+ run : pnpm audit --prod
52
47
53
48
- name : Audit all
54
49
continue-on-error : true
55
- run : yarn npm audit --all --recursive
50
+ run : pnpm audit
56
51
57
52
- name : Check outdated dependencies
58
53
continue-on-error : true
59
54
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 1
1
.github /ISSUE_TEMPLATE /
2
2
.yarn /
3
3
.pnp.cjs
4
+ pnpm-lock.yaml
4
5
coverage /
5
6
dist /
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 7
7
[ diff] ( https://github.com/Shinigami92/eslint-define-config/compare/1.0.9...1.1.0 )
8
8
9
9
- 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 `
15
15
16
16
[ #69 ] : https://github.com/Shinigami92/eslint-define-config/pull/69
17
17
Original file line number Diff line number Diff line change @@ -33,9 +33,11 @@ Provide a `defineConfig` function for `.eslintrc.js` files.
33
33
34
34
``` bash
35
35
# 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
37
37
# or
38
38
yarn add --dev eslint eslint-define-config
39
+ # or
40
+ pnpm add --save-dev eslint eslint-define-config
39
41
```
40
42
41
43
# Usage
Original file line number Diff line number Diff line change 4
4
"description" : " Provide a defineConfig function for .eslintrc.js files" ,
5
5
"main" : " src/index.js" ,
6
6
"scripts" : {
7
- "clean" : " rm -Rf dist yarn. lock node_modules" ,
7
+ "clean" : " rm -Rf dist pnpm- lock.yaml node_modules" ,
8
8
"check" : " tsc" ,
9
9
"format" : " prettier --write ." ,
10
10
"lint" : " eslint ." ,
11
11
"test" : " echo \" No tests available\" " ,
12
- "prepublishOnly" : " yarn clean && yarn install && yarn check" ,
12
+ "prepublishOnly" : " pnpm run clean && pnpm install && pnpm run check" ,
13
13
"generate:rules" : " esno ./scripts/generate-rule-files.ts" ,
14
14
"generate" : " node ./scripts/generate-rule.js"
15
15
},
You can’t perform that action at this time.
0 commit comments