@antfu/eslint-config 2.6.3 → 2.6.4
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 +6 -6
- package/dist/cli.js +6 -6
- package/dist/index.cjs +3 -0
- package/dist/index.js +3 -0
- package/package.json +17 -17
package/dist/cli.cjs
CHANGED
|
@@ -46,7 +46,7 @@ var import_parse_gitignore = __toESM(require("parse-gitignore"), 1);
|
|
|
46
46
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
47
47
|
|
|
48
48
|
// package.json
|
|
49
|
-
var version = "2.6.
|
|
49
|
+
var version = "2.6.4";
|
|
50
50
|
var devDependencies = {
|
|
51
51
|
"@antfu/eslint-config": "workspace:*",
|
|
52
52
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
@@ -54,10 +54,10 @@ var devDependencies = {
|
|
|
54
54
|
"@stylistic/eslint-plugin-migrate": "^1.5.4",
|
|
55
55
|
"@types/eslint": "^8.56.2",
|
|
56
56
|
"@types/fs-extra": "^11.0.4",
|
|
57
|
-
"@types/node": "^20.11.
|
|
57
|
+
"@types/node": "^20.11.16",
|
|
58
58
|
"@types/prompts": "^2.4.9",
|
|
59
59
|
"@types/yargs": "^17.0.32",
|
|
60
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
60
|
+
"@unocss/eslint-plugin": "^0.58.4",
|
|
61
61
|
bumpp: "^9.3.0",
|
|
62
62
|
eslint: "npm:eslint-ts-patch@^8.56.0-0",
|
|
63
63
|
"eslint-flat-config-viewer": "^0.1.11",
|
|
@@ -71,15 +71,15 @@ var devDependencies = {
|
|
|
71
71
|
execa: "^8.0.1",
|
|
72
72
|
"fast-glob": "^3.3.2",
|
|
73
73
|
"fs-extra": "^11.2.0",
|
|
74
|
-
"lint-staged": "^15.2.
|
|
74
|
+
"lint-staged": "^15.2.1",
|
|
75
75
|
rimraf: "^5.0.5",
|
|
76
76
|
"simple-git-hooks": "^2.9.0",
|
|
77
77
|
svelte: "^4.2.9",
|
|
78
78
|
"svelte-eslint-parser": "^0.33.1",
|
|
79
79
|
tsup: "^8.0.1",
|
|
80
80
|
typescript: "^5.3.3",
|
|
81
|
-
vitest: "^1.2.
|
|
82
|
-
vue: "^3.4.
|
|
81
|
+
vitest: "^1.2.2",
|
|
82
|
+
vue: "^3.4.15"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// src/cli/constants.ts
|
package/dist/cli.js
CHANGED
|
@@ -17,7 +17,7 @@ import parse from "parse-gitignore";
|
|
|
17
17
|
import c from "picocolors";
|
|
18
18
|
|
|
19
19
|
// package.json
|
|
20
|
-
var version = "2.6.
|
|
20
|
+
var version = "2.6.4";
|
|
21
21
|
var devDependencies = {
|
|
22
22
|
"@antfu/eslint-config": "workspace:*",
|
|
23
23
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
@@ -25,10 +25,10 @@ var devDependencies = {
|
|
|
25
25
|
"@stylistic/eslint-plugin-migrate": "^1.5.4",
|
|
26
26
|
"@types/eslint": "^8.56.2",
|
|
27
27
|
"@types/fs-extra": "^11.0.4",
|
|
28
|
-
"@types/node": "^20.11.
|
|
28
|
+
"@types/node": "^20.11.16",
|
|
29
29
|
"@types/prompts": "^2.4.9",
|
|
30
30
|
"@types/yargs": "^17.0.32",
|
|
31
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
31
|
+
"@unocss/eslint-plugin": "^0.58.4",
|
|
32
32
|
bumpp: "^9.3.0",
|
|
33
33
|
eslint: "npm:eslint-ts-patch@^8.56.0-0",
|
|
34
34
|
"eslint-flat-config-viewer": "^0.1.11",
|
|
@@ -42,15 +42,15 @@ var devDependencies = {
|
|
|
42
42
|
execa: "^8.0.1",
|
|
43
43
|
"fast-glob": "^3.3.2",
|
|
44
44
|
"fs-extra": "^11.2.0",
|
|
45
|
-
"lint-staged": "^15.2.
|
|
45
|
+
"lint-staged": "^15.2.1",
|
|
46
46
|
rimraf: "^5.0.5",
|
|
47
47
|
"simple-git-hooks": "^2.9.0",
|
|
48
48
|
svelte: "^4.2.9",
|
|
49
49
|
"svelte-eslint-parser": "^0.33.1",
|
|
50
50
|
tsup: "^8.0.1",
|
|
51
51
|
typescript: "^5.3.3",
|
|
52
|
-
vitest: "^1.2.
|
|
53
|
-
vue: "^3.4.
|
|
52
|
+
vitest: "^1.2.2",
|
|
53
|
+
vue: "^3.4.15"
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
// src/cli/constants.ts
|
package/dist/index.cjs
CHANGED
|
@@ -1517,6 +1517,8 @@ async function typescript(options = {}) {
|
|
|
1517
1517
|
"ts/ban-types": ["error", { types: { Function: false } }],
|
|
1518
1518
|
"ts/consistent-type-definitions": ["error", "interface"],
|
|
1519
1519
|
"ts/consistent-type-imports": ["error", { disallowTypeAnnotations: false, prefer: "type-imports" }],
|
|
1520
|
+
"ts/method-signature-style": ["error", "property"],
|
|
1521
|
+
// https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
|
|
1520
1522
|
"ts/no-dupe-class-members": "error",
|
|
1521
1523
|
"ts/no-dynamic-delete": "off",
|
|
1522
1524
|
"ts/no-explicit-any": "off",
|
|
@@ -1912,6 +1914,7 @@ async function toml(options = {}) {
|
|
|
1912
1914
|
|
|
1913
1915
|
// src/factory.ts
|
|
1914
1916
|
var flatConfigProps = [
|
|
1917
|
+
"name",
|
|
1915
1918
|
"files",
|
|
1916
1919
|
"ignores",
|
|
1917
1920
|
"languageOptions",
|
package/dist/index.js
CHANGED
|
@@ -1424,6 +1424,8 @@ async function typescript(options = {}) {
|
|
|
1424
1424
|
"ts/ban-types": ["error", { types: { Function: false } }],
|
|
1425
1425
|
"ts/consistent-type-definitions": ["error", "interface"],
|
|
1426
1426
|
"ts/consistent-type-imports": ["error", { disallowTypeAnnotations: false, prefer: "type-imports" }],
|
|
1427
|
+
"ts/method-signature-style": ["error", "property"],
|
|
1428
|
+
// https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
|
|
1427
1429
|
"ts/no-dupe-class-members": "error",
|
|
1428
1430
|
"ts/no-dynamic-delete": "off",
|
|
1429
1431
|
"ts/no-explicit-any": "off",
|
|
@@ -1819,6 +1821,7 @@ async function toml(options = {}) {
|
|
|
1819
1821
|
|
|
1820
1822
|
// src/factory.ts
|
|
1821
1823
|
var flatConfigProps = [
|
|
1824
|
+
"name",
|
|
1822
1825
|
"files",
|
|
1823
1826
|
"ignores",
|
|
1824
1827
|
"languageOptions",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antfu/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.6.
|
|
5
|
-
"packageManager": "pnpm@8.
|
|
4
|
+
"version": "2.6.4",
|
|
5
|
+
"packageManager": "pnpm@8.15.1",
|
|
6
6
|
"description": "Anthony's ESLint config",
|
|
7
7
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
8
8
|
"license": "MIT",
|
|
@@ -61,18 +61,18 @@
|
|
|
61
61
|
"@antfu/eslint-define-config": "^1.23.0-2",
|
|
62
62
|
"@antfu/install-pkg": "^0.3.1",
|
|
63
63
|
"@eslint-types/jsdoc": "46.8.2-1",
|
|
64
|
-
"@eslint-types/typescript-eslint": "^6.
|
|
64
|
+
"@eslint-types/typescript-eslint": "^6.19.1",
|
|
65
65
|
"@eslint-types/unicorn": "^50.0.1",
|
|
66
66
|
"@stylistic/eslint-plugin": "^1.5.4",
|
|
67
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
68
|
-
"@typescript-eslint/parser": "^6.
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
|
68
|
+
"@typescript-eslint/parser": "^6.20.0",
|
|
69
69
|
"eslint-config-flat-gitignore": "^0.1.2",
|
|
70
70
|
"eslint-merge-processors": "^0.1.0",
|
|
71
|
-
"eslint-plugin-antfu": "^2.1.
|
|
71
|
+
"eslint-plugin-antfu": "^2.1.2",
|
|
72
72
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
73
73
|
"eslint-plugin-i": "^2.29.1",
|
|
74
|
-
"eslint-plugin-jsdoc": "^48.0.
|
|
75
|
-
"eslint-plugin-jsonc": "^2.
|
|
74
|
+
"eslint-plugin-jsdoc": "^48.0.4",
|
|
75
|
+
"eslint-plugin-jsonc": "^2.13.0",
|
|
76
76
|
"eslint-plugin-markdown": "^3.0.1",
|
|
77
77
|
"eslint-plugin-n": "^16.6.2",
|
|
78
78
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"eslint-plugin-toml": "^0.9.2",
|
|
81
81
|
"eslint-plugin-unicorn": "^50.0.1",
|
|
82
82
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
83
|
-
"eslint-plugin-vitest": "^0.3.
|
|
84
|
-
"eslint-plugin-vue": "^9.
|
|
83
|
+
"eslint-plugin-vitest": "^0.3.21",
|
|
84
|
+
"eslint-plugin-vue": "^9.21.1",
|
|
85
85
|
"eslint-plugin-yml": "^1.12.2",
|
|
86
86
|
"eslint-processor-vue-blocks": "^0.1.1",
|
|
87
87
|
"globals": "^13.24.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"picocolors": "^1.0.0",
|
|
92
92
|
"prompts": "^2.4.2",
|
|
93
93
|
"toml-eslint-parser": "^0.9.3",
|
|
94
|
-
"vue-eslint-parser": "^9.4.
|
|
94
|
+
"vue-eslint-parser": "^9.4.2",
|
|
95
95
|
"yaml-eslint-parser": "^1.2.2",
|
|
96
96
|
"yargs": "^17.7.2"
|
|
97
97
|
},
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
"@stylistic/eslint-plugin-migrate": "^1.5.4",
|
|
102
102
|
"@types/eslint": "^8.56.2",
|
|
103
103
|
"@types/fs-extra": "^11.0.4",
|
|
104
|
-
"@types/node": "^20.11.
|
|
104
|
+
"@types/node": "^20.11.16",
|
|
105
105
|
"@types/prompts": "^2.4.9",
|
|
106
106
|
"@types/yargs": "^17.0.32",
|
|
107
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
107
|
+
"@unocss/eslint-plugin": "^0.58.4",
|
|
108
108
|
"bumpp": "^9.3.0",
|
|
109
109
|
"eslint": "npm:eslint-ts-patch@^8.56.0-0",
|
|
110
110
|
"eslint-flat-config-viewer": "^0.1.11",
|
|
@@ -118,16 +118,16 @@
|
|
|
118
118
|
"execa": "^8.0.1",
|
|
119
119
|
"fast-glob": "^3.3.2",
|
|
120
120
|
"fs-extra": "^11.2.0",
|
|
121
|
-
"lint-staged": "^15.2.
|
|
121
|
+
"lint-staged": "^15.2.1",
|
|
122
122
|
"rimraf": "^5.0.5",
|
|
123
123
|
"simple-git-hooks": "^2.9.0",
|
|
124
124
|
"svelte": "^4.2.9",
|
|
125
125
|
"svelte-eslint-parser": "^0.33.1",
|
|
126
126
|
"tsup": "^8.0.1",
|
|
127
127
|
"typescript": "^5.3.3",
|
|
128
|
-
"vitest": "^1.2.
|
|
129
|
-
"vue": "^3.4.
|
|
130
|
-
"@antfu/eslint-config": "2.6.
|
|
128
|
+
"vitest": "^1.2.2",
|
|
129
|
+
"vue": "^3.4.15",
|
|
130
|
+
"@antfu/eslint-config": "2.6.4"
|
|
131
131
|
},
|
|
132
132
|
"simple-git-hooks": {
|
|
133
133
|
"pre-commit": "pnpm lint-staged"
|