@antfu/eslint-config 3.7.2 → 3.7.3
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 +5 -5
- package/dist/cli.js +5 -5
- package/dist/index.cjs +7 -10
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -10
- package/package.json +6 -6
package/dist/cli.cjs
CHANGED
|
@@ -41,7 +41,7 @@ var import_picocolors = __toESM(require("picocolors"), 1);
|
|
|
41
41
|
var package_default = {
|
|
42
42
|
name: "@antfu/eslint-config",
|
|
43
43
|
type: "module",
|
|
44
|
-
version: "3.7.
|
|
44
|
+
version: "3.7.3",
|
|
45
45
|
packageManager: "pnpm@9.11.0",
|
|
46
46
|
description: "Anthony's ESLint config",
|
|
47
47
|
author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
@@ -148,9 +148,9 @@ var package_default = {
|
|
|
148
148
|
"eslint-flat-config-utils": "^0.4.0",
|
|
149
149
|
"eslint-merge-processors": "^0.1.0",
|
|
150
150
|
"eslint-plugin-antfu": "^2.7.0",
|
|
151
|
-
"eslint-plugin-command": "^0.2.
|
|
151
|
+
"eslint-plugin-command": "^0.2.6",
|
|
152
152
|
"eslint-plugin-import-x": "^4.3.0",
|
|
153
|
-
"eslint-plugin-jsdoc": "^50.
|
|
153
|
+
"eslint-plugin-jsdoc": "^50.3.0",
|
|
154
154
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
155
155
|
"eslint-plugin-n": "^17.10.3",
|
|
156
156
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
@@ -180,7 +180,7 @@ var package_default = {
|
|
|
180
180
|
"@prettier/plugin-xml": "^3.4.1",
|
|
181
181
|
"@stylistic/eslint-plugin-migrate": "^2.8.0",
|
|
182
182
|
"@types/fs-extra": "^11.0.4",
|
|
183
|
-
"@types/node": "^22.7.
|
|
183
|
+
"@types/node": "^22.7.3",
|
|
184
184
|
"@types/prompts": "^2.4.9",
|
|
185
185
|
"@types/yargs": "^17.0.33",
|
|
186
186
|
"@unocss/eslint-plugin": "^0.62.4",
|
|
@@ -210,7 +210,7 @@ var package_default = {
|
|
|
210
210
|
tsx: "^4.19.1",
|
|
211
211
|
typescript: "^5.6.2",
|
|
212
212
|
vitest: "^2.1.1",
|
|
213
|
-
vue: "^3.5.
|
|
213
|
+
vue: "^3.5.9"
|
|
214
214
|
},
|
|
215
215
|
resolutions: {
|
|
216
216
|
"@eslint-community/eslint-utils": "^4.4.0",
|
package/dist/cli.js
CHANGED
|
@@ -12,7 +12,7 @@ import c from "picocolors";
|
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "@antfu/eslint-config",
|
|
14
14
|
type: "module",
|
|
15
|
-
version: "3.7.
|
|
15
|
+
version: "3.7.3",
|
|
16
16
|
packageManager: "pnpm@9.11.0",
|
|
17
17
|
description: "Anthony's ESLint config",
|
|
18
18
|
author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
@@ -119,9 +119,9 @@ var package_default = {
|
|
|
119
119
|
"eslint-flat-config-utils": "^0.4.0",
|
|
120
120
|
"eslint-merge-processors": "^0.1.0",
|
|
121
121
|
"eslint-plugin-antfu": "^2.7.0",
|
|
122
|
-
"eslint-plugin-command": "^0.2.
|
|
122
|
+
"eslint-plugin-command": "^0.2.6",
|
|
123
123
|
"eslint-plugin-import-x": "^4.3.0",
|
|
124
|
-
"eslint-plugin-jsdoc": "^50.
|
|
124
|
+
"eslint-plugin-jsdoc": "^50.3.0",
|
|
125
125
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
126
126
|
"eslint-plugin-n": "^17.10.3",
|
|
127
127
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
@@ -151,7 +151,7 @@ var package_default = {
|
|
|
151
151
|
"@prettier/plugin-xml": "^3.4.1",
|
|
152
152
|
"@stylistic/eslint-plugin-migrate": "^2.8.0",
|
|
153
153
|
"@types/fs-extra": "^11.0.4",
|
|
154
|
-
"@types/node": "^22.7.
|
|
154
|
+
"@types/node": "^22.7.3",
|
|
155
155
|
"@types/prompts": "^2.4.9",
|
|
156
156
|
"@types/yargs": "^17.0.33",
|
|
157
157
|
"@unocss/eslint-plugin": "^0.62.4",
|
|
@@ -181,7 +181,7 @@ var package_default = {
|
|
|
181
181
|
tsx: "^4.19.1",
|
|
182
182
|
typescript: "^5.6.2",
|
|
183
183
|
vitest: "^2.1.1",
|
|
184
|
-
vue: "^3.5.
|
|
184
|
+
vue: "^3.5.9"
|
|
185
185
|
},
|
|
186
186
|
resolutions: {
|
|
187
187
|
"@eslint-community/eslint-utils": "^4.4.0",
|
package/dist/index.cjs
CHANGED
|
@@ -424,14 +424,6 @@ async function disables() {
|
|
|
424
424
|
"unused-imports/no-unused-vars": "off"
|
|
425
425
|
}
|
|
426
426
|
},
|
|
427
|
-
{
|
|
428
|
-
files: ["**/*.{test,spec}.([tj])s?(x)"],
|
|
429
|
-
name: "antfu/disables/test",
|
|
430
|
-
rules: {
|
|
431
|
-
"antfu/no-top-level-await": "off",
|
|
432
|
-
"no-unused-expressions": "off"
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
427
|
{
|
|
436
428
|
files: ["**/*.js", "**/*.cjs"],
|
|
437
429
|
name: "antfu/disables/cjs",
|
|
@@ -1923,14 +1915,19 @@ async function test(options = {}) {
|
|
|
1923
1915
|
files,
|
|
1924
1916
|
name: "antfu/test/rules",
|
|
1925
1917
|
rules: {
|
|
1926
|
-
"node/prefer-global/process": "off",
|
|
1927
1918
|
"test/consistent-test-it": ["error", { fn: "it", withinDescribe: "it" }],
|
|
1928
1919
|
"test/no-identical-title": "error",
|
|
1929
1920
|
"test/no-import-node-test": "error",
|
|
1930
1921
|
"test/no-only-tests": isInEditor ? "off" : "error",
|
|
1931
1922
|
"test/prefer-hooks-in-order": "error",
|
|
1932
1923
|
"test/prefer-lowercase-title": "error",
|
|
1933
|
-
|
|
1924
|
+
// Disables
|
|
1925
|
+
...{
|
|
1926
|
+
"antfu/no-top-level-await": "off",
|
|
1927
|
+
"no-unused-expressions": "off",
|
|
1928
|
+
"node/prefer-global/process": "off",
|
|
1929
|
+
"ts/explicit-function-return-type": "off"
|
|
1930
|
+
},
|
|
1934
1931
|
...overrides
|
|
1935
1932
|
}
|
|
1936
1933
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -8688,6 +8688,7 @@ type JsdocRequireParam = []|[{
|
|
|
8688
8688
|
enableRestElementFixer?: boolean
|
|
8689
8689
|
enableRootFixer?: boolean
|
|
8690
8690
|
exemptedBy?: string[]
|
|
8691
|
+
ignoreWhenAllParamsMissing?: boolean
|
|
8691
8692
|
unnamedRootBase?: string[]
|
|
8692
8693
|
useDefaultObjectProperties?: boolean
|
|
8693
8694
|
}]
|
package/dist/index.d.ts
CHANGED
|
@@ -8688,6 +8688,7 @@ type JsdocRequireParam = []|[{
|
|
|
8688
8688
|
enableRestElementFixer?: boolean
|
|
8689
8689
|
enableRootFixer?: boolean
|
|
8690
8690
|
exemptedBy?: string[]
|
|
8691
|
+
ignoreWhenAllParamsMissing?: boolean
|
|
8691
8692
|
unnamedRootBase?: string[]
|
|
8692
8693
|
useDefaultObjectProperties?: boolean
|
|
8693
8694
|
}]
|
package/dist/index.js
CHANGED
|
@@ -311,14 +311,6 @@ async function disables() {
|
|
|
311
311
|
"unused-imports/no-unused-vars": "off"
|
|
312
312
|
}
|
|
313
313
|
},
|
|
314
|
-
{
|
|
315
|
-
files: ["**/*.{test,spec}.([tj])s?(x)"],
|
|
316
|
-
name: "antfu/disables/test",
|
|
317
|
-
rules: {
|
|
318
|
-
"antfu/no-top-level-await": "off",
|
|
319
|
-
"no-unused-expressions": "off"
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
314
|
{
|
|
323
315
|
files: ["**/*.js", "**/*.cjs"],
|
|
324
316
|
name: "antfu/disables/cjs",
|
|
@@ -1810,14 +1802,19 @@ async function test(options = {}) {
|
|
|
1810
1802
|
files,
|
|
1811
1803
|
name: "antfu/test/rules",
|
|
1812
1804
|
rules: {
|
|
1813
|
-
"node/prefer-global/process": "off",
|
|
1814
1805
|
"test/consistent-test-it": ["error", { fn: "it", withinDescribe: "it" }],
|
|
1815
1806
|
"test/no-identical-title": "error",
|
|
1816
1807
|
"test/no-import-node-test": "error",
|
|
1817
1808
|
"test/no-only-tests": isInEditor ? "off" : "error",
|
|
1818
1809
|
"test/prefer-hooks-in-order": "error",
|
|
1819
1810
|
"test/prefer-lowercase-title": "error",
|
|
1820
|
-
|
|
1811
|
+
// Disables
|
|
1812
|
+
...{
|
|
1813
|
+
"antfu/no-top-level-await": "off",
|
|
1814
|
+
"no-unused-expressions": "off",
|
|
1815
|
+
"node/prefer-global/process": "off",
|
|
1816
|
+
"ts/explicit-function-return-type": "off"
|
|
1817
|
+
},
|
|
1821
1818
|
...overrides
|
|
1822
1819
|
}
|
|
1823
1820
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antfu/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.7.
|
|
4
|
+
"version": "3.7.3",
|
|
5
5
|
"description": "Anthony's ESLint config",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -93,9 +93,9 @@
|
|
|
93
93
|
"eslint-flat-config-utils": "^0.4.0",
|
|
94
94
|
"eslint-merge-processors": "^0.1.0",
|
|
95
95
|
"eslint-plugin-antfu": "^2.7.0",
|
|
96
|
-
"eslint-plugin-command": "^0.2.
|
|
96
|
+
"eslint-plugin-command": "^0.2.6",
|
|
97
97
|
"eslint-plugin-import-x": "^4.3.0",
|
|
98
|
-
"eslint-plugin-jsdoc": "^50.
|
|
98
|
+
"eslint-plugin-jsdoc": "^50.3.0",
|
|
99
99
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
100
100
|
"eslint-plugin-n": "^17.10.3",
|
|
101
101
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"@prettier/plugin-xml": "^3.4.1",
|
|
125
125
|
"@stylistic/eslint-plugin-migrate": "^2.8.0",
|
|
126
126
|
"@types/fs-extra": "^11.0.4",
|
|
127
|
-
"@types/node": "^22.7.
|
|
127
|
+
"@types/node": "^22.7.3",
|
|
128
128
|
"@types/prompts": "^2.4.9",
|
|
129
129
|
"@types/yargs": "^17.0.33",
|
|
130
130
|
"@unocss/eslint-plugin": "^0.62.4",
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
"tsx": "^4.19.1",
|
|
155
155
|
"typescript": "^5.6.2",
|
|
156
156
|
"vitest": "^2.1.1",
|
|
157
|
-
"vue": "^3.5.
|
|
158
|
-
"@antfu/eslint-config": "3.7.
|
|
157
|
+
"vue": "^3.5.9",
|
|
158
|
+
"@antfu/eslint-config": "3.7.3"
|
|
159
159
|
},
|
|
160
160
|
"resolutions": {
|
|
161
161
|
"@eslint-community/eslint-utils": "^4.4.0",
|