@pengzhanbo/eslint-config 2.7.1 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3542,6 +3542,11 @@ interface RuleOptions {
|
|
|
3542
3542
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
|
|
3543
3543
|
*/
|
|
3544
3544
|
'pnpm/yaml-enforce-settings'?: Linter.RuleEntry<PnpmYamlEnforceSettings>;
|
|
3545
|
+
/**
|
|
3546
|
+
* Disallow the anonymous `catalog:` in `pnpm-workspace.yaml` in favor of named catalogs
|
|
3547
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-anonymous-catalog.test.ts
|
|
3548
|
+
*/
|
|
3549
|
+
'pnpm/yaml-no-anonymous-catalog'?: Linter.RuleEntry<[]>;
|
|
3545
3550
|
/**
|
|
3546
3551
|
* Disallow duplicate catalog items in `pnpm-workspace.yaml`
|
|
3547
3552
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
|
|
@@ -341,7 +341,6 @@ async function astro(options = {}) {
|
|
|
341
341
|
"astro/no-set-html-directive": "off",
|
|
342
342
|
"astro/no-unused-define-vars-in-style": "error",
|
|
343
343
|
"astro/semi": "off",
|
|
344
|
-
"astro/valid-compile": "error",
|
|
345
344
|
...stylistic ? {
|
|
346
345
|
"style/indent": "off",
|
|
347
346
|
"style/jsx-closing-tag-location": "off",
|
|
@@ -1489,7 +1488,6 @@ async function solid(options = {}) {
|
|
|
1489
1488
|
"solid/no-react-deps": "error",
|
|
1490
1489
|
"solid/no-react-specific-props": "error",
|
|
1491
1490
|
"solid/no-unknown-namespaces": "error",
|
|
1492
|
-
"solid/prefer-classlist": "off",
|
|
1493
1491
|
"solid/prefer-for": "error",
|
|
1494
1492
|
"solid/prefer-show": "off",
|
|
1495
1493
|
"solid/reactivity": "warn",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pengzhanbo/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.8.0",
|
|
5
5
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/pengzhanbo/configs#readme",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"eslint-config"
|
|
15
15
|
],
|
|
16
16
|
"exports": {
|
|
17
|
-
".": "./dist/index.
|
|
17
|
+
".": "./dist/index.js",
|
|
18
18
|
"./package.json": "./package.json"
|
|
19
19
|
},
|
|
20
|
-
"types": "./dist/index.d.
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
21
|
"files": [
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"@angular-eslint/eslint-plugin": "^22.1.0",
|
|
26
26
|
"@angular-eslint/eslint-plugin-template": "^22.1.0",
|
|
27
27
|
"@angular-eslint/template-parser": "^22.1.0",
|
|
28
|
-
"@eslint-react/eslint-plugin": "^5.
|
|
29
|
-
"@next/eslint-plugin-next": "^16.2.
|
|
28
|
+
"@eslint-react/eslint-plugin": "^5.18.0",
|
|
29
|
+
"@next/eslint-plugin-next": "^16.2.12",
|
|
30
30
|
"@prettier/plugin-xml": "^3.4.2",
|
|
31
31
|
"@unocss/eslint-plugin": "^66.7.5",
|
|
32
32
|
"astro-eslint-parser": "^3.0.0",
|
|
33
|
-
"eslint": "^10.
|
|
33
|
+
"eslint": "^10.8.0",
|
|
34
34
|
"eslint-plugin-astro": "^3.0.1",
|
|
35
35
|
"eslint-plugin-format": "^2.0.1",
|
|
36
36
|
"eslint-plugin-react-refresh": "^0.5.3",
|
|
@@ -109,13 +109,13 @@
|
|
|
109
109
|
},
|
|
110
110
|
"dependencies": {
|
|
111
111
|
"@antfu/install-pkg": "^2.0.1",
|
|
112
|
-
"@e18e/eslint-plugin": "^0.
|
|
112
|
+
"@e18e/eslint-plugin": "^0.6.0",
|
|
113
113
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
114
114
|
"@eslint/markdown": "^8.0.3",
|
|
115
115
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
116
116
|
"@typescript-eslint/eslint-plugin": "^8.65.0",
|
|
117
117
|
"@typescript-eslint/parser": "^8.65.0",
|
|
118
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
118
|
+
"@vitest/eslint-plugin": "^1.6.24",
|
|
119
119
|
"eslint-config-flat-gitignore": "^2.3.0",
|
|
120
120
|
"eslint-flat-config-utils": "^3.2.0",
|
|
121
121
|
"eslint-merge-processors": "^2.0.0",
|
|
@@ -123,19 +123,19 @@
|
|
|
123
123
|
"eslint-plugin-command": "^3.5.3",
|
|
124
124
|
"eslint-plugin-erasable-syntax-only": "^0.4.2",
|
|
125
125
|
"eslint-plugin-import-lite": "^0.6.0",
|
|
126
|
-
"eslint-plugin-jsdoc": "^63.2
|
|
126
|
+
"eslint-plugin-jsdoc": "^63.3.2",
|
|
127
127
|
"eslint-plugin-jsonc": "^3.3.0",
|
|
128
128
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
129
129
|
"eslint-plugin-n": "^18.2.2",
|
|
130
130
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
131
131
|
"eslint-plugin-perfectionist": "^5.10.0",
|
|
132
|
-
"eslint-plugin-pnpm": "^1.
|
|
132
|
+
"eslint-plugin-pnpm": "^1.7.0",
|
|
133
133
|
"eslint-plugin-regexp": "^3.1.1",
|
|
134
|
-
"eslint-plugin-toml": "^1.
|
|
134
|
+
"eslint-plugin-toml": "^1.5.0",
|
|
135
135
|
"eslint-plugin-unicorn": "^72.0.0",
|
|
136
136
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
137
137
|
"eslint-plugin-yml": "^3.6.0",
|
|
138
|
-
"globals": "^17.
|
|
138
|
+
"globals": "^17.8.0",
|
|
139
139
|
"local-pkg": "^1.2.1",
|
|
140
140
|
"parse-gitignore": "^2.0.0",
|
|
141
141
|
"toml-eslint-parser": "^1.0.3",
|
|
@@ -145,14 +145,14 @@
|
|
|
145
145
|
"@angular-eslint/eslint-plugin": "^22.1.0",
|
|
146
146
|
"@angular-eslint/eslint-plugin-template": "^22.1.0",
|
|
147
147
|
"@angular-eslint/template-parser": "^22.1.0",
|
|
148
|
-
"@angular/core": "^22.0
|
|
149
|
-
"@eslint-react/eslint-plugin": "^5.
|
|
148
|
+
"@angular/core": "^22.1.0",
|
|
149
|
+
"@eslint-react/eslint-plugin": "^5.18.0",
|
|
150
150
|
"@eslint/config-inspector": "^3.1.0",
|
|
151
|
-
"@next/eslint-plugin-next": "^16.2.
|
|
151
|
+
"@next/eslint-plugin-next": "^16.2.12",
|
|
152
152
|
"@prettier/plugin-xml": "^3.4.2",
|
|
153
153
|
"@unocss/eslint-plugin": "^66.7.5",
|
|
154
154
|
"astro-eslint-parser": "^3.0.0",
|
|
155
|
-
"eslint": "^10.
|
|
155
|
+
"eslint": "^10.8.0",
|
|
156
156
|
"eslint-plugin-astro": "^3.0.1",
|
|
157
157
|
"eslint-plugin-format": "^2.0.1",
|
|
158
158
|
"eslint-plugin-react-refresh": "^0.5.3",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"find-up-simple": "^1.0.1",
|
|
167
167
|
"prettier-plugin-astro": "^0.14.1",
|
|
168
168
|
"prettier-plugin-slidev": "^1.0.5",
|
|
169
|
-
"svelte": "^5.56.
|
|
169
|
+
"svelte": "^5.56.8",
|
|
170
170
|
"svelte-eslint-parser": "^1.8.0",
|
|
171
171
|
"vue-eslint-parser": "^10.4.1"
|
|
172
172
|
},
|
|
@@ -178,10 +178,10 @@
|
|
|
178
178
|
"provenance": true
|
|
179
179
|
},
|
|
180
180
|
"scripts": {
|
|
181
|
-
"dev": "tsdown
|
|
182
|
-
"build": "pnpm typegen && tsdown
|
|
181
|
+
"dev": "tsdown --watch & npx @eslint/config-inspector",
|
|
182
|
+
"build": "pnpm typegen && tsdown",
|
|
183
183
|
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
184
|
-
"stub": "tsdown
|
|
184
|
+
"stub": "tsdown --no-minify",
|
|
185
185
|
"typegen": "tsx scripts/typegen.ts"
|
|
186
186
|
}
|
|
187
187
|
}
|