@cany748/eslint-config 4.3.0 → 6.0.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 +196 -152
- package/dist/index.mjs +14 -9
- package/package.json +31 -33
package/dist/index.mjs
CHANGED
|
@@ -98,13 +98,17 @@ const GLOB_EXCLUDE = [
|
|
|
98
98
|
"**/.output",
|
|
99
99
|
"**/.vite-inspect",
|
|
100
100
|
"**/.yarn",
|
|
101
|
-
"**/vite.config.*.timestamp-*",
|
|
102
101
|
"**/CHANGELOG*.md",
|
|
103
|
-
"**/*.min.*",
|
|
104
102
|
"**/LICENSE*",
|
|
103
|
+
"**/*.min.*",
|
|
105
104
|
"**/__snapshots__",
|
|
105
|
+
"**/vite.config.*.timestamp-*",
|
|
106
106
|
"**/auto-import?(s).d.ts",
|
|
107
|
-
"**/components.d.ts"
|
|
107
|
+
"**/components.d.ts",
|
|
108
|
+
"**/.context",
|
|
109
|
+
"**/.claude",
|
|
110
|
+
"**/.agents",
|
|
111
|
+
"**/.*/skills"
|
|
108
112
|
];
|
|
109
113
|
//#endregion
|
|
110
114
|
//#region src/configs/disables.ts
|
|
@@ -165,6 +169,7 @@ function e18e(options = {}) {
|
|
|
165
169
|
...modernization ? { ...configs.modernization.rules } : {},
|
|
166
170
|
...moduleReplacements ? { ...configs.moduleReplacements.rules } : {},
|
|
167
171
|
...performanceImprovements ? { ...configs.performanceImprovements.rules } : {},
|
|
172
|
+
...type === "lib" ? {} : { "e18e/prefer-static-regex": "off" },
|
|
168
173
|
...overrides
|
|
169
174
|
}
|
|
170
175
|
}];
|
|
@@ -229,35 +234,35 @@ function formatters(options = true) {
|
|
|
229
234
|
files: [GLOB_CSS, GLOB_POSTCSS],
|
|
230
235
|
languageOptions: { parser: parserPlain },
|
|
231
236
|
name: "formatter/css",
|
|
232
|
-
rules: { "prettier/prettier": ["
|
|
237
|
+
rules: { "prettier/prettier": ["warn", { parser: "css" }] }
|
|
233
238
|
}, {
|
|
234
239
|
files: [GLOB_SCSS],
|
|
235
240
|
languageOptions: { parser: parserPlain },
|
|
236
241
|
name: "formatter/scss",
|
|
237
|
-
rules: { "prettier/prettier": ["
|
|
242
|
+
rules: { "prettier/prettier": ["warn", { parser: "scss" }] }
|
|
238
243
|
}, {
|
|
239
244
|
files: [GLOB_LESS],
|
|
240
245
|
languageOptions: { parser: parserPlain },
|
|
241
246
|
name: "formatter/less",
|
|
242
|
-
rules: { "prettier/prettier": ["
|
|
247
|
+
rules: { "prettier/prettier": ["warn", { parser: "less" }] }
|
|
243
248
|
});
|
|
244
249
|
if (options.graphql) configs.push({
|
|
245
250
|
files: [GLOB_GRAPHQL],
|
|
246
251
|
languageOptions: { parser: parserPlain },
|
|
247
252
|
name: "formatter/graphql",
|
|
248
|
-
rules: { "prettier/prettier": ["
|
|
253
|
+
rules: { "prettier/prettier": ["warn", { parser: "graphql" }] }
|
|
249
254
|
});
|
|
250
255
|
if (options.html) configs.push({
|
|
251
256
|
files: [GLOB_HTML],
|
|
252
257
|
languageOptions: { parser: parserPlain },
|
|
253
258
|
name: "formatter/html",
|
|
254
|
-
rules: { "prettier/prettier": ["
|
|
259
|
+
rules: { "prettier/prettier": ["warn", { parser: "html" }] }
|
|
255
260
|
});
|
|
256
261
|
if (options.markdown) configs.push({
|
|
257
262
|
files: [GLOB_MARKDOWN],
|
|
258
263
|
languageOptions: { parser: parserPlain },
|
|
259
264
|
name: "formatter/markdown",
|
|
260
|
-
rules: { "prettier/prettier": ["
|
|
265
|
+
rules: { "prettier/prettier": ["warn", { parser: "markdown" }] }
|
|
261
266
|
});
|
|
262
267
|
return configs;
|
|
263
268
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cany748/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
5
|
-
"packageManager": "pnpm@10.32.1",
|
|
4
|
+
"version": "6.0.0",
|
|
6
5
|
"exports": {
|
|
7
6
|
".": "./dist/index.mjs"
|
|
8
7
|
},
|
|
@@ -12,20 +11,10 @@
|
|
|
12
11
|
"files": [
|
|
13
12
|
"dist"
|
|
14
13
|
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "pnpm typegen && tsdown --clean --dts",
|
|
17
|
-
"typegen": "bun scripts/typegen.ts",
|
|
18
|
-
"dev": "npx @eslint/config-inspector --config eslint.config.ts",
|
|
19
|
-
"lint": "eslint",
|
|
20
|
-
"lint:fix": "eslint --fix",
|
|
21
|
-
"release": "bumpp && pnpm publish",
|
|
22
|
-
"typecheck": "tsc --noEmit",
|
|
23
|
-
"prepare": "simple-git-hooks"
|
|
24
|
-
},
|
|
25
14
|
"peerDependencies": {
|
|
26
15
|
"@unocss/eslint-plugin": "^66.6.7",
|
|
27
16
|
"eslint-plugin-vue": "^10.8.0",
|
|
28
|
-
"typescript-eslint": "^8.
|
|
17
|
+
"typescript-eslint": "^8.58.0"
|
|
29
18
|
},
|
|
30
19
|
"peerDependenciesMeta": {
|
|
31
20
|
"@unocss/eslint-plugin": {
|
|
@@ -39,42 +28,51 @@
|
|
|
39
28
|
}
|
|
40
29
|
},
|
|
41
30
|
"dependencies": {
|
|
42
|
-
"@e18e/eslint-plugin": "^0.
|
|
31
|
+
"@e18e/eslint-plugin": "^0.5.0",
|
|
43
32
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
44
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
45
|
-
"eslint": "^10.0
|
|
46
|
-
"eslint-config-flat-gitignore": "^2.
|
|
33
|
+
"@vitest/eslint-plugin": "^1.6.17",
|
|
34
|
+
"eslint": "^10.3.0",
|
|
35
|
+
"eslint-config-flat-gitignore": "^2.3.0",
|
|
47
36
|
"eslint-config-prettier": "^10.1.8",
|
|
48
|
-
"eslint-flat-config-utils": "^3.0
|
|
37
|
+
"eslint-flat-config-utils": "^3.2.0",
|
|
49
38
|
"eslint-plugin-import-x": "^4.16.2",
|
|
50
39
|
"eslint-plugin-jsonc": "^3.1.2",
|
|
51
|
-
"eslint-plugin-n": "^
|
|
52
|
-
"eslint-plugin-no-only-tests": "^3.
|
|
40
|
+
"eslint-plugin-n": "^18.0.1",
|
|
41
|
+
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
53
42
|
"eslint-plugin-prettier": "^5.5.5",
|
|
54
43
|
"eslint-plugin-regexp": "^3.1.0",
|
|
55
|
-
"eslint-plugin-unicorn": "^
|
|
44
|
+
"eslint-plugin-unicorn": "^64.0.0",
|
|
56
45
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
57
|
-
"globals": "^17.
|
|
58
|
-
"jiti": "^2.
|
|
46
|
+
"globals": "^17.6.0",
|
|
47
|
+
"jiti": "^2.7.0",
|
|
59
48
|
"local-pkg": "^1.1.2",
|
|
60
|
-
"prettier": "^3.8.
|
|
49
|
+
"prettier": "^3.8.3"
|
|
61
50
|
},
|
|
62
51
|
"devDependencies": {
|
|
63
|
-
"@types/node": "^25.
|
|
64
|
-
"@unocss/eslint-plugin": "^66.6.
|
|
65
|
-
"bumpp": "^11.0
|
|
66
|
-
"eslint-plugin-vue": "^10.
|
|
52
|
+
"@types/node": "^25.7.0",
|
|
53
|
+
"@unocss/eslint-plugin": "^66.6.8",
|
|
54
|
+
"bumpp": "^11.1.0",
|
|
55
|
+
"eslint-plugin-vue": "^10.9.1",
|
|
67
56
|
"eslint-typegen": "^2.3.1",
|
|
68
|
-
"lint-staged": "^
|
|
57
|
+
"lint-staged": "^17.0.4",
|
|
69
58
|
"simple-git-hooks": "^2.13.1",
|
|
70
|
-
"tsdown": "^0.
|
|
71
|
-
"typescript": "^
|
|
72
|
-
"typescript-eslint": "^8.
|
|
59
|
+
"tsdown": "^0.22.0",
|
|
60
|
+
"typescript": "^6.0.3",
|
|
61
|
+
"typescript-eslint": "^8.59.3"
|
|
73
62
|
},
|
|
74
63
|
"simple-git-hooks": {
|
|
75
64
|
"pre-commit": "pnpm lint-staged"
|
|
76
65
|
},
|
|
77
66
|
"lint-staged": {
|
|
78
67
|
"*": "eslint --fix"
|
|
68
|
+
},
|
|
69
|
+
"scripts": {
|
|
70
|
+
"build": "pnpm typegen && tsdown --clean --dts",
|
|
71
|
+
"typegen": "bun scripts/typegen.ts",
|
|
72
|
+
"dev": "pnpm dlx @eslint/config-inspector --config eslint.config.ts",
|
|
73
|
+
"lint": "eslint",
|
|
74
|
+
"lint:fix": "eslint --fix",
|
|
75
|
+
"release": "bumpp && pnpm publish",
|
|
76
|
+
"typecheck": "tsc --noEmit"
|
|
79
77
|
}
|
|
80
|
-
}
|
|
78
|
+
}
|