File tree 1 file changed +18
-4
lines changed
1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,28 @@ export async function pnpm(): Promise<Config[]> {
8
8
languageOptions : {
9
9
parser : await import ( 'jsonc-eslint-parser' ) ,
10
10
} ,
11
- name : 'sxzz/pnpm/rules ' ,
11
+ name : 'sxzz/pnpm/package-json ' ,
12
12
plugins : {
13
13
pnpm : pluginPnpm ,
14
14
} ,
15
15
rules : {
16
- 'pnpm/enforce-catalog' : 'error' ,
17
- 'pnpm/prefer-workspace-settings' : 'error' ,
18
- 'pnpm/valid-catalog' : 'error' ,
16
+ 'pnpm/json-enforce-catalog' : 'error' ,
17
+ 'pnpm/json-prefer-workspace-settings' : 'error' ,
18
+ 'pnpm/json-valid-catalog' : 'error' ,
19
+ } ,
20
+ } ,
21
+ {
22
+ files : [ 'pnpm-workspace.yaml' ] ,
23
+ languageOptions : {
24
+ parser : await import ( 'yaml-eslint-parser' ) ,
25
+ } ,
26
+ name : 'sxzz/pnpm/pnpm-workspace-yaml' ,
27
+ plugins : {
28
+ pnpm : pluginPnpm ,
29
+ } ,
30
+ rules : {
31
+ 'pnpm/yaml-no-duplicate-catalog-item' : 'error' ,
32
+ 'pnpm/yaml-no-unused-catalog-item' : 'error' ,
19
33
} ,
20
34
} ,
21
35
]
You can’t perform that action at this time.
0 commit comments