@antfu/eslint-config 2.12.0 → 2.12.2
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/cli.cjs +12 -11
- package/dist/cli.js +12 -11
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +148 -129
- package/dist/index.d.ts +148 -129
- package/dist/index.js +1 -1
- package/package.json +13 -12
package/dist/cli.cjs
CHANGED
|
@@ -48,7 +48,7 @@ var import_picocolors = __toESM(require("picocolors"), 1);
|
|
|
48
48
|
var package_default = {
|
|
49
49
|
name: "@antfu/eslint-config",
|
|
50
50
|
type: "module",
|
|
51
|
-
version: "2.12.
|
|
51
|
+
version: "2.12.2",
|
|
52
52
|
packageManager: "pnpm@8.15.6",
|
|
53
53
|
description: "Anthony's ESLint config",
|
|
54
54
|
author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
@@ -75,6 +75,7 @@ var package_default = {
|
|
|
75
75
|
build: "nr typegen && tsup --format esm,cjs --clean --dts",
|
|
76
76
|
stub: "tsup --format esm",
|
|
77
77
|
dev: "tsup --format esm,cjs --watch & npx @eslint/config-inspector",
|
|
78
|
+
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
78
79
|
watch: "tsup --format esm,cjs --watch",
|
|
79
80
|
lint: "eslint .",
|
|
80
81
|
typegen: "esno scripts/typegen.ts",
|
|
@@ -93,7 +94,7 @@ var package_default = {
|
|
|
93
94
|
"eslint-plugin-react": "^7.33.2",
|
|
94
95
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
95
96
|
"eslint-plugin-react-refresh": "^0.4.4",
|
|
96
|
-
"eslint-plugin-svelte": "
|
|
97
|
+
"eslint-plugin-svelte": ">=2.35.1",
|
|
97
98
|
"prettier-plugin-astro": "^0.13.0",
|
|
98
99
|
"prettier-plugin-slidev": "^1.0.5",
|
|
99
100
|
"svelte-eslint-parser": "^0.33.1"
|
|
@@ -140,19 +141,19 @@ var package_default = {
|
|
|
140
141
|
"@typescript-eslint/eslint-plugin": "^7.5.0",
|
|
141
142
|
"@typescript-eslint/parser": "^7.5.0",
|
|
142
143
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
143
|
-
"eslint-flat-config-utils": "^0.2.
|
|
144
|
+
"eslint-flat-config-utils": "^0.2.1",
|
|
144
145
|
"eslint-merge-processors": "^0.1.0",
|
|
145
146
|
"eslint-plugin-antfu": "^2.1.2",
|
|
146
147
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
147
148
|
"eslint-plugin-import-x": "^0.5.0",
|
|
148
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
149
|
+
"eslint-plugin-jsdoc": "^48.2.3",
|
|
149
150
|
"eslint-plugin-jsonc": "^2.15.0",
|
|
150
151
|
"eslint-plugin-markdown": "^4.0.1",
|
|
151
152
|
"eslint-plugin-n": "^16.6.2",
|
|
152
153
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
153
|
-
"eslint-plugin-perfectionist": "^2.
|
|
154
|
+
"eslint-plugin-perfectionist": "^2.8.0",
|
|
154
155
|
"eslint-plugin-toml": "^0.11.0",
|
|
155
|
-
"eslint-plugin-unicorn": "^
|
|
156
|
+
"eslint-plugin-unicorn": "^52.0.0",
|
|
156
157
|
"eslint-plugin-unused-imports": "^3.1.0",
|
|
157
158
|
"eslint-plugin-vitest": "^0.4.1",
|
|
158
159
|
"eslint-plugin-vue": "^9.24.0",
|
|
@@ -172,17 +173,17 @@ var package_default = {
|
|
|
172
173
|
"@antfu/eslint-config": "workspace:*",
|
|
173
174
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
174
175
|
"@antfu/ni": "^0.21.12",
|
|
175
|
-
"@eslint/config-inspector": "^0.
|
|
176
|
+
"@eslint/config-inspector": "^0.4.1",
|
|
176
177
|
"@stylistic/eslint-plugin-migrate": "^1.7.0",
|
|
177
178
|
"@types/eslint": "^8.56.7",
|
|
178
179
|
"@types/fs-extra": "^11.0.4",
|
|
179
|
-
"@types/node": "^20.12.
|
|
180
|
+
"@types/node": "^20.12.4",
|
|
180
181
|
"@types/prompts": "^2.4.9",
|
|
181
182
|
"@types/yargs": "^17.0.32",
|
|
182
|
-
"@unocss/eslint-plugin": "^0.
|
|
183
|
+
"@unocss/eslint-plugin": "^0.59.0",
|
|
183
184
|
"astro-eslint-parser": "^0.16.3",
|
|
184
185
|
bumpp: "^9.4.0",
|
|
185
|
-
eslint: "9.0.0
|
|
186
|
+
eslint: "^9.0.0",
|
|
186
187
|
"eslint-plugin-astro": "^0.33.1",
|
|
187
188
|
"eslint-plugin-format": "^0.1.0",
|
|
188
189
|
"eslint-plugin-react": "^7.34.1",
|
|
@@ -202,7 +203,7 @@ var package_default = {
|
|
|
202
203
|
svelte: "^4.2.12",
|
|
203
204
|
"svelte-eslint-parser": "^0.33.1",
|
|
204
205
|
tsup: "^8.0.2",
|
|
205
|
-
typescript: "^5.4.
|
|
206
|
+
typescript: "^5.4.4",
|
|
206
207
|
vitest: "^1.4.0",
|
|
207
208
|
vue: "^3.4.21"
|
|
208
209
|
},
|
package/dist/cli.js
CHANGED
|
@@ -19,7 +19,7 @@ import c from "picocolors";
|
|
|
19
19
|
var package_default = {
|
|
20
20
|
name: "@antfu/eslint-config",
|
|
21
21
|
type: "module",
|
|
22
|
-
version: "2.12.
|
|
22
|
+
version: "2.12.2",
|
|
23
23
|
packageManager: "pnpm@8.15.6",
|
|
24
24
|
description: "Anthony's ESLint config",
|
|
25
25
|
author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
@@ -46,6 +46,7 @@ var package_default = {
|
|
|
46
46
|
build: "nr typegen && tsup --format esm,cjs --clean --dts",
|
|
47
47
|
stub: "tsup --format esm",
|
|
48
48
|
dev: "tsup --format esm,cjs --watch & npx @eslint/config-inspector",
|
|
49
|
+
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
49
50
|
watch: "tsup --format esm,cjs --watch",
|
|
50
51
|
lint: "eslint .",
|
|
51
52
|
typegen: "esno scripts/typegen.ts",
|
|
@@ -64,7 +65,7 @@ var package_default = {
|
|
|
64
65
|
"eslint-plugin-react": "^7.33.2",
|
|
65
66
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
66
67
|
"eslint-plugin-react-refresh": "^0.4.4",
|
|
67
|
-
"eslint-plugin-svelte": "
|
|
68
|
+
"eslint-plugin-svelte": ">=2.35.1",
|
|
68
69
|
"prettier-plugin-astro": "^0.13.0",
|
|
69
70
|
"prettier-plugin-slidev": "^1.0.5",
|
|
70
71
|
"svelte-eslint-parser": "^0.33.1"
|
|
@@ -111,19 +112,19 @@ var package_default = {
|
|
|
111
112
|
"@typescript-eslint/eslint-plugin": "^7.5.0",
|
|
112
113
|
"@typescript-eslint/parser": "^7.5.0",
|
|
113
114
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
114
|
-
"eslint-flat-config-utils": "^0.2.
|
|
115
|
+
"eslint-flat-config-utils": "^0.2.1",
|
|
115
116
|
"eslint-merge-processors": "^0.1.0",
|
|
116
117
|
"eslint-plugin-antfu": "^2.1.2",
|
|
117
118
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
118
119
|
"eslint-plugin-import-x": "^0.5.0",
|
|
119
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
120
|
+
"eslint-plugin-jsdoc": "^48.2.3",
|
|
120
121
|
"eslint-plugin-jsonc": "^2.15.0",
|
|
121
122
|
"eslint-plugin-markdown": "^4.0.1",
|
|
122
123
|
"eslint-plugin-n": "^16.6.2",
|
|
123
124
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
124
|
-
"eslint-plugin-perfectionist": "^2.
|
|
125
|
+
"eslint-plugin-perfectionist": "^2.8.0",
|
|
125
126
|
"eslint-plugin-toml": "^0.11.0",
|
|
126
|
-
"eslint-plugin-unicorn": "^
|
|
127
|
+
"eslint-plugin-unicorn": "^52.0.0",
|
|
127
128
|
"eslint-plugin-unused-imports": "^3.1.0",
|
|
128
129
|
"eslint-plugin-vitest": "^0.4.1",
|
|
129
130
|
"eslint-plugin-vue": "^9.24.0",
|
|
@@ -143,17 +144,17 @@ var package_default = {
|
|
|
143
144
|
"@antfu/eslint-config": "workspace:*",
|
|
144
145
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
145
146
|
"@antfu/ni": "^0.21.12",
|
|
146
|
-
"@eslint/config-inspector": "^0.
|
|
147
|
+
"@eslint/config-inspector": "^0.4.1",
|
|
147
148
|
"@stylistic/eslint-plugin-migrate": "^1.7.0",
|
|
148
149
|
"@types/eslint": "^8.56.7",
|
|
149
150
|
"@types/fs-extra": "^11.0.4",
|
|
150
|
-
"@types/node": "^20.12.
|
|
151
|
+
"@types/node": "^20.12.4",
|
|
151
152
|
"@types/prompts": "^2.4.9",
|
|
152
153
|
"@types/yargs": "^17.0.32",
|
|
153
|
-
"@unocss/eslint-plugin": "^0.
|
|
154
|
+
"@unocss/eslint-plugin": "^0.59.0",
|
|
154
155
|
"astro-eslint-parser": "^0.16.3",
|
|
155
156
|
bumpp: "^9.4.0",
|
|
156
|
-
eslint: "9.0.0
|
|
157
|
+
eslint: "^9.0.0",
|
|
157
158
|
"eslint-plugin-astro": "^0.33.1",
|
|
158
159
|
"eslint-plugin-format": "^0.1.0",
|
|
159
160
|
"eslint-plugin-react": "^7.34.1",
|
|
@@ -173,7 +174,7 @@ var package_default = {
|
|
|
173
174
|
svelte: "^4.2.12",
|
|
174
175
|
"svelte-eslint-parser": "^0.33.1",
|
|
175
176
|
tsup: "^8.0.2",
|
|
176
|
-
typescript: "^5.4.
|
|
177
|
+
typescript: "^5.4.4",
|
|
177
178
|
vitest: "^1.4.0",
|
|
178
179
|
vue: "^3.4.21"
|
|
179
180
|
},
|
package/dist/index.cjs
CHANGED
|
@@ -339,7 +339,7 @@ async function javascript(options = {}) {
|
|
|
339
339
|
"no-multi-str": "error",
|
|
340
340
|
"no-new": "error",
|
|
341
341
|
"no-new-func": "error",
|
|
342
|
-
"no-new-
|
|
342
|
+
"no-new-native-nonconstructor": "error",
|
|
343
343
|
"no-new-wrappers": "error",
|
|
344
344
|
"no-obj-calls": "error",
|
|
345
345
|
"no-octal": "error",
|