@pengzhanbo/eslint-config 2.3.0 → 2.4.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.
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +11 -5
- package/package.json +18 -18
package/dist/index.d.mts
CHANGED
|
@@ -771,6 +771,11 @@ interface RuleOptions {
|
|
|
771
771
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-exports-from-components/
|
|
772
772
|
*/
|
|
773
773
|
'astro/no-exports-from-components'?: Linter.RuleEntry<[]>;
|
|
774
|
+
/**
|
|
775
|
+
* disallow `prerender` export outside of pages/ directory
|
|
776
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-prerender-export-outside-pages/
|
|
777
|
+
*/
|
|
778
|
+
'astro/no-prerender-export-outside-pages'?: Linter.RuleEntry<[]>;
|
|
774
779
|
/**
|
|
775
780
|
* disallow use of `set:html` to prevent XSS attack
|
|
776
781
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-html-directive/
|
package/dist/index.mjs
CHANGED
|
@@ -122,13 +122,17 @@ const GLOB_EXCLUDE = [
|
|
|
122
122
|
"**/.output",
|
|
123
123
|
"**/.vite-inspect",
|
|
124
124
|
"**/.yarn",
|
|
125
|
-
"**/vite.config.*.timestamp-*",
|
|
126
125
|
"**/CHANGELOG*.md",
|
|
127
|
-
"**/*.min.*",
|
|
128
126
|
"**/LICENSE*",
|
|
129
127
|
"**/__snapshots__",
|
|
128
|
+
"**/vite.config.*.timestamp-*",
|
|
130
129
|
"**/auto-import?(s).d.ts",
|
|
131
|
-
"**/components.d.ts"
|
|
130
|
+
"**/components.d.ts",
|
|
131
|
+
"**/.context",
|
|
132
|
+
"**/.claude",
|
|
133
|
+
"**/.agents",
|
|
134
|
+
"**/.trae",
|
|
135
|
+
"**/.*/skills"
|
|
132
136
|
];
|
|
133
137
|
//#endregion
|
|
134
138
|
//#region src/utils.ts
|
|
@@ -433,6 +437,9 @@ async function e18e(options = {}) {
|
|
|
433
437
|
...modernization ? { ...configs.modernization.rules } : {},
|
|
434
438
|
...moduleReplacements ? { ...configs.moduleReplacements.rules } : {},
|
|
435
439
|
...performanceImprovements ? { ...configs.performanceImprovements.rules } : {},
|
|
440
|
+
...type === "lib" ? {} : { "e18e/prefer-static-regex": "off" },
|
|
441
|
+
"e18e/prefer-array-at": "off",
|
|
442
|
+
"e18e/prefer-array-from-map": "off",
|
|
436
443
|
"e18e/prefer-array-to-reversed": "off",
|
|
437
444
|
"e18e/prefer-array-to-sorted": "off",
|
|
438
445
|
"e18e/prefer-array-to-spliced": "off",
|
|
@@ -1367,12 +1374,11 @@ async function react(options = {}) {
|
|
|
1367
1374
|
const isUsingRemix = RemixPackages.some((i) => isPackageExists(i));
|
|
1368
1375
|
const isUsingReactRouter = ReactRouterPackages.some((i) => isPackageExists(i));
|
|
1369
1376
|
const isUsingNext = NextJsPackages.some((i) => isPackageExists(i));
|
|
1370
|
-
const plugins = pluginReact.configs.all.plugins;
|
|
1371
1377
|
return [
|
|
1372
1378
|
{
|
|
1373
1379
|
name: "config/react/setup",
|
|
1374
1380
|
plugins: {
|
|
1375
|
-
"react": plugins["@eslint-react"],
|
|
1381
|
+
"react": pluginReact.configs.all.plugins["@eslint-react"],
|
|
1376
1382
|
"react-refresh": pluginReactRefresh
|
|
1377
1383
|
}
|
|
1378
1384
|
},
|
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.4.0",
|
|
5
5
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/pengzhanbo/configs#readme",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"@angular-eslint/eslint-plugin-template": "^21.3.1",
|
|
27
27
|
"@angular-eslint/template-parser": "^21.3.1",
|
|
28
28
|
"@eslint-react/eslint-plugin": "^4.2.3",
|
|
29
|
-
"@next/eslint-plugin-next": "^16.2.
|
|
29
|
+
"@next/eslint-plugin-next": "^16.2.4",
|
|
30
30
|
"@prettier/plugin-xml": "^3.4.2",
|
|
31
|
-
"@unocss/eslint-plugin": "^66.6.
|
|
31
|
+
"@unocss/eslint-plugin": "^66.6.8",
|
|
32
32
|
"astro-eslint-parser": "^1.4.0",
|
|
33
|
-
"eslint": "^10.1
|
|
34
|
-
"eslint-plugin-astro": "^1.
|
|
33
|
+
"eslint": "^10.2.1",
|
|
34
|
+
"eslint-plugin-astro": "^1.7.0",
|
|
35
35
|
"eslint-plugin-format": "^2.0.1",
|
|
36
36
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
37
37
|
"eslint-plugin-solid": "^0.14.5",
|
|
38
38
|
"eslint-plugin-svelte": "^3.17.0",
|
|
39
|
-
"eslint-plugin-tailwindcss": "^3.18.
|
|
39
|
+
"eslint-plugin-tailwindcss": "^3.18.3",
|
|
40
40
|
"eslint-plugin-vue": "^10.8.0",
|
|
41
41
|
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
42
42
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
@@ -113,9 +113,9 @@
|
|
|
113
113
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
114
114
|
"@eslint/markdown": "^8.0.1",
|
|
115
115
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
116
|
-
"@typescript-eslint/eslint-plugin": "^8.58.
|
|
117
|
-
"@typescript-eslint/parser": "^8.58.
|
|
118
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
116
|
+
"@typescript-eslint/eslint-plugin": "^8.58.2",
|
|
117
|
+
"@typescript-eslint/parser": "^8.58.2",
|
|
118
|
+
"@vitest/eslint-plugin": "^1.6.16",
|
|
119
119
|
"eslint-config-flat-gitignore": "^2.3.0",
|
|
120
120
|
"eslint-flat-config-utils": "^3.1.0",
|
|
121
121
|
"eslint-merge-processors": "^2.0.0",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
136
136
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
137
137
|
"eslint-plugin-yml": "^3.3.1",
|
|
138
|
-
"globals": "^17.
|
|
138
|
+
"globals": "^17.5.0",
|
|
139
139
|
"local-pkg": "^1.1.2",
|
|
140
140
|
"parse-gitignore": "^2.0.0",
|
|
141
141
|
"toml-eslint-parser": "^1.0.3",
|
|
@@ -145,20 +145,20 @@
|
|
|
145
145
|
"@angular-eslint/eslint-plugin": "^21.3.1",
|
|
146
146
|
"@angular-eslint/eslint-plugin-template": "^21.3.1",
|
|
147
147
|
"@angular-eslint/template-parser": "^21.3.1",
|
|
148
|
-
"@angular/core": "^21.2.
|
|
148
|
+
"@angular/core": "^21.2.9",
|
|
149
149
|
"@eslint-react/eslint-plugin": "^4.2.3",
|
|
150
|
-
"@eslint/config-inspector": "^
|
|
151
|
-
"@next/eslint-plugin-next": "^16.2.
|
|
150
|
+
"@eslint/config-inspector": "^2.0.0",
|
|
151
|
+
"@next/eslint-plugin-next": "^16.2.4",
|
|
152
152
|
"@prettier/plugin-xml": "^3.4.2",
|
|
153
|
-
"@unocss/eslint-plugin": "^66.6.
|
|
153
|
+
"@unocss/eslint-plugin": "^66.6.8",
|
|
154
154
|
"astro-eslint-parser": "^1.4.0",
|
|
155
|
-
"eslint": "^10.1
|
|
156
|
-
"eslint-plugin-astro": "^1.
|
|
155
|
+
"eslint": "^10.2.1",
|
|
156
|
+
"eslint-plugin-astro": "^1.7.0",
|
|
157
157
|
"eslint-plugin-format": "^2.0.1",
|
|
158
158
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
159
159
|
"eslint-plugin-solid": "^0.14.5",
|
|
160
160
|
"eslint-plugin-svelte": "^3.17.0",
|
|
161
|
-
"eslint-plugin-tailwindcss": "^3.18.
|
|
161
|
+
"eslint-plugin-tailwindcss": "^3.18.3",
|
|
162
162
|
"eslint-plugin-vue": "^10.8.0",
|
|
163
163
|
"eslint-plugin-vuejs-accessibility": "^2.5.0",
|
|
164
164
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
@@ -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.55.
|
|
169
|
+
"svelte": "^5.55.4",
|
|
170
170
|
"svelte-eslint-parser": "^1.6.0",
|
|
171
171
|
"vue-eslint-parser": "^10.4.0"
|
|
172
172
|
},
|