@antfu/eslint-config 2.6.0 → 2.6.1
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/bin/index.js +0 -1
- package/dist/cli.cjs +3 -3
- package/dist/cli.js +3 -3
- package/dist/index.cjs +8 -0
- package/dist/index.js +8 -0
- package/package.json +10 -10
package/bin/index.js
CHANGED
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.1";
|
|
50
50
|
var devDependencies = {
|
|
51
51
|
"@antfu/eslint-config": "workspace:*",
|
|
52
52
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
@@ -59,14 +59,14 @@ var devDependencies = {
|
|
|
59
59
|
"@types/yargs": "^17.0.32",
|
|
60
60
|
"@unocss/eslint-plugin": "^0.58.0",
|
|
61
61
|
bumpp: "^9.2.1",
|
|
62
|
-
eslint: "npm:eslint-ts-patch@^8.
|
|
62
|
+
eslint: "npm:eslint-ts-patch@^8.56.0-0",
|
|
63
63
|
"eslint-flat-config-viewer": "^0.1.3",
|
|
64
64
|
"eslint-plugin-format": "^0.1.0",
|
|
65
65
|
"eslint-plugin-react": "^7.33.2",
|
|
66
66
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
67
67
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
68
68
|
"eslint-plugin-svelte": "^2.35.1",
|
|
69
|
-
"eslint-ts-patch": "^8.
|
|
69
|
+
"eslint-ts-patch": "^8.56.0-0",
|
|
70
70
|
esno: "^4.0.0",
|
|
71
71
|
execa: "^8.0.1",
|
|
72
72
|
"fast-glob": "^3.3.2",
|
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.1";
|
|
21
21
|
var devDependencies = {
|
|
22
22
|
"@antfu/eslint-config": "workspace:*",
|
|
23
23
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
@@ -30,14 +30,14 @@ var devDependencies = {
|
|
|
30
30
|
"@types/yargs": "^17.0.32",
|
|
31
31
|
"@unocss/eslint-plugin": "^0.58.0",
|
|
32
32
|
bumpp: "^9.2.1",
|
|
33
|
-
eslint: "npm:eslint-ts-patch@^8.
|
|
33
|
+
eslint: "npm:eslint-ts-patch@^8.56.0-0",
|
|
34
34
|
"eslint-flat-config-viewer": "^0.1.3",
|
|
35
35
|
"eslint-plugin-format": "^0.1.0",
|
|
36
36
|
"eslint-plugin-react": "^7.33.2",
|
|
37
37
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
38
38
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
39
39
|
"eslint-plugin-svelte": "^2.35.1",
|
|
40
|
-
"eslint-ts-patch": "^8.
|
|
40
|
+
"eslint-ts-patch": "^8.56.0-0",
|
|
41
41
|
esno: "^4.0.0",
|
|
42
42
|
execa: "^8.0.1",
|
|
43
43
|
"fast-glob": "^3.3.2",
|
package/dist/index.cjs
CHANGED
|
@@ -231,6 +231,14 @@ async function imports(options = {}) {
|
|
|
231
231
|
"import/newline-after-import": ["error", { considerComments: true, count: 1 }]
|
|
232
232
|
} : {}
|
|
233
233
|
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
files: ["**/bin/**/*", `**/bin.${GLOB_SRC_EXT}`],
|
|
237
|
+
name: "antfu:imports:bin",
|
|
238
|
+
rules: {
|
|
239
|
+
"antfu/no-import-dist": "off",
|
|
240
|
+
"antfu/no-import-node-modules-by-path": "off"
|
|
241
|
+
}
|
|
234
242
|
}
|
|
235
243
|
];
|
|
236
244
|
}
|
package/dist/index.js
CHANGED
|
@@ -138,6 +138,14 @@ async function imports(options = {}) {
|
|
|
138
138
|
"import/newline-after-import": ["error", { considerComments: true, count: 1 }]
|
|
139
139
|
} : {}
|
|
140
140
|
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
files: ["**/bin/**/*", `**/bin.${GLOB_SRC_EXT}`],
|
|
144
|
+
name: "antfu:imports:bin",
|
|
145
|
+
rules: {
|
|
146
|
+
"antfu/no-import-dist": "off",
|
|
147
|
+
"antfu/no-import-node-modules-by-path": "off"
|
|
148
|
+
}
|
|
141
149
|
}
|
|
142
150
|
];
|
|
143
151
|
}
|
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.1",
|
|
5
|
+
"packageManager": "pnpm@8.13.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,14 +61,14 @@
|
|
|
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.
|
|
65
|
-
"@eslint-types/unicorn": "^
|
|
64
|
+
"@eslint-types/typescript-eslint": "^6.16.0",
|
|
65
|
+
"@eslint-types/unicorn": "^50.0.1",
|
|
66
66
|
"@stylistic/eslint-plugin": "^1.5.1",
|
|
67
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
68
|
-
"@typescript-eslint/parser": "^6.
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^6.16.0",
|
|
68
|
+
"@typescript-eslint/parser": "^6.16.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.1",
|
|
72
72
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
73
73
|
"eslint-plugin-i": "^2.29.1",
|
|
74
74
|
"eslint-plugin-jsdoc": "^46.9.1",
|
|
@@ -106,14 +106,14 @@
|
|
|
106
106
|
"@types/yargs": "^17.0.32",
|
|
107
107
|
"@unocss/eslint-plugin": "^0.58.0",
|
|
108
108
|
"bumpp": "^9.2.1",
|
|
109
|
-
"eslint": "npm:eslint-ts-patch@^8.
|
|
109
|
+
"eslint": "npm:eslint-ts-patch@^8.56.0-0",
|
|
110
110
|
"eslint-flat-config-viewer": "^0.1.3",
|
|
111
111
|
"eslint-plugin-format": "^0.1.0",
|
|
112
112
|
"eslint-plugin-react": "^7.33.2",
|
|
113
113
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
114
114
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
115
115
|
"eslint-plugin-svelte": "^2.35.1",
|
|
116
|
-
"eslint-ts-patch": "^8.
|
|
116
|
+
"eslint-ts-patch": "^8.56.0-0",
|
|
117
117
|
"esno": "^4.0.0",
|
|
118
118
|
"execa": "^8.0.1",
|
|
119
119
|
"fast-glob": "^3.3.2",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"typescript": "^5.3.3",
|
|
127
127
|
"vitest": "^1.1.0",
|
|
128
128
|
"vue": "^3.3.13",
|
|
129
|
-
"@antfu/eslint-config": "2.6.
|
|
129
|
+
"@antfu/eslint-config": "2.6.1"
|
|
130
130
|
},
|
|
131
131
|
"simple-git-hooks": {
|
|
132
132
|
"pre-commit": "pnpm lint-staged"
|