@antfu/eslint-config 2.13.2 → 2.13.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 -4
- package/dist/cli.js +5 -4
- package/dist/index.cjs +10 -8
- package/dist/index.js +10 -8
- package/package.json +6 -5
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.13.
|
|
51
|
+
version: "2.13.3",
|
|
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/)",
|
|
@@ -74,7 +74,7 @@ var package_default = {
|
|
|
74
74
|
scripts: {
|
|
75
75
|
build: "nr typegen && tsup --format esm,cjs --clean --dts",
|
|
76
76
|
stub: "tsup --format esm",
|
|
77
|
-
dev: "
|
|
77
|
+
dev: "npx @eslint/config-inspector --config eslint.config.ts",
|
|
78
78
|
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
79
79
|
watch: "tsup --format esm,cjs --watch",
|
|
80
80
|
lint: "eslint .",
|
|
@@ -159,7 +159,7 @@ var package_default = {
|
|
|
159
159
|
"eslint-plugin-toml": "^0.11.0",
|
|
160
160
|
"eslint-plugin-unicorn": "^52.0.0",
|
|
161
161
|
"eslint-plugin-unused-imports": "^3.1.0",
|
|
162
|
-
"eslint-plugin-vitest": "^0.5.
|
|
162
|
+
"eslint-plugin-vitest": "^0.5.1",
|
|
163
163
|
"eslint-plugin-vue": "^9.24.1",
|
|
164
164
|
"eslint-plugin-yml": "^1.14.0",
|
|
165
165
|
"eslint-processor-vue-blocks": "^0.1.1",
|
|
@@ -177,7 +177,7 @@ var package_default = {
|
|
|
177
177
|
"@antfu/eslint-config": "workspace:*",
|
|
178
178
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
179
179
|
"@antfu/ni": "^0.21.12",
|
|
180
|
-
"@eslint/config-inspector": "^0.4.
|
|
180
|
+
"@eslint/config-inspector": "^0.4.5",
|
|
181
181
|
"@stylistic/eslint-plugin-migrate": "^1.7.0",
|
|
182
182
|
"@types/eslint": "^8.56.7",
|
|
183
183
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -187,6 +187,7 @@ var package_default = {
|
|
|
187
187
|
"@unocss/eslint-plugin": "^0.59.0",
|
|
188
188
|
"astro-eslint-parser": "^0.17.0",
|
|
189
189
|
bumpp: "^9.4.0",
|
|
190
|
+
"bundle-require": "^4.0.2",
|
|
190
191
|
eslint: "^9.0.0",
|
|
191
192
|
"eslint-plugin-astro": "^0.34.0",
|
|
192
193
|
"eslint-plugin-format": "^0.1.0",
|
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.13.
|
|
22
|
+
version: "2.13.3",
|
|
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/)",
|
|
@@ -45,7 +45,7 @@ var package_default = {
|
|
|
45
45
|
scripts: {
|
|
46
46
|
build: "nr typegen && tsup --format esm,cjs --clean --dts",
|
|
47
47
|
stub: "tsup --format esm",
|
|
48
|
-
dev: "
|
|
48
|
+
dev: "npx @eslint/config-inspector --config eslint.config.ts",
|
|
49
49
|
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
50
50
|
watch: "tsup --format esm,cjs --watch",
|
|
51
51
|
lint: "eslint .",
|
|
@@ -130,7 +130,7 @@ var package_default = {
|
|
|
130
130
|
"eslint-plugin-toml": "^0.11.0",
|
|
131
131
|
"eslint-plugin-unicorn": "^52.0.0",
|
|
132
132
|
"eslint-plugin-unused-imports": "^3.1.0",
|
|
133
|
-
"eslint-plugin-vitest": "^0.5.
|
|
133
|
+
"eslint-plugin-vitest": "^0.5.1",
|
|
134
134
|
"eslint-plugin-vue": "^9.24.1",
|
|
135
135
|
"eslint-plugin-yml": "^1.14.0",
|
|
136
136
|
"eslint-processor-vue-blocks": "^0.1.1",
|
|
@@ -148,7 +148,7 @@ var package_default = {
|
|
|
148
148
|
"@antfu/eslint-config": "workspace:*",
|
|
149
149
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
150
150
|
"@antfu/ni": "^0.21.12",
|
|
151
|
-
"@eslint/config-inspector": "^0.4.
|
|
151
|
+
"@eslint/config-inspector": "^0.4.5",
|
|
152
152
|
"@stylistic/eslint-plugin-migrate": "^1.7.0",
|
|
153
153
|
"@types/eslint": "^8.56.7",
|
|
154
154
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -158,6 +158,7 @@ var package_default = {
|
|
|
158
158
|
"@unocss/eslint-plugin": "^0.59.0",
|
|
159
159
|
"astro-eslint-parser": "^0.17.0",
|
|
160
160
|
bumpp: "^9.4.0",
|
|
161
|
+
"bundle-require": "^4.0.2",
|
|
161
162
|
eslint: "^9.0.0",
|
|
162
163
|
"eslint-plugin-astro": "^0.34.0",
|
|
163
164
|
"eslint-plugin-format": "^0.1.0",
|
package/dist/index.cjs
CHANGED
|
@@ -1479,6 +1479,7 @@ async function svelte(options = {}) {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
1481
1481
|
// src/configs/test.ts
|
|
1482
|
+
var _pluginTest;
|
|
1482
1483
|
async function test(options = {}) {
|
|
1483
1484
|
const {
|
|
1484
1485
|
files = GLOB_TESTS,
|
|
@@ -1493,18 +1494,19 @@ async function test(options = {}) {
|
|
|
1493
1494
|
// @ts-expect-error missing types
|
|
1494
1495
|
interopDefault(import("eslint-plugin-no-only-tests"))
|
|
1495
1496
|
]);
|
|
1497
|
+
_pluginTest = _pluginTest || {
|
|
1498
|
+
...pluginVitest,
|
|
1499
|
+
rules: {
|
|
1500
|
+
...pluginVitest.rules,
|
|
1501
|
+
// extend `test/no-only-tests` rule
|
|
1502
|
+
...pluginNoOnlyTests.rules
|
|
1503
|
+
}
|
|
1504
|
+
};
|
|
1496
1505
|
return [
|
|
1497
1506
|
{
|
|
1498
1507
|
name: "antfu/test/setup",
|
|
1499
1508
|
plugins: {
|
|
1500
|
-
test:
|
|
1501
|
-
...pluginVitest,
|
|
1502
|
-
rules: {
|
|
1503
|
-
...pluginVitest.rules,
|
|
1504
|
-
// extend `test/no-only-tests` rule
|
|
1505
|
-
...pluginNoOnlyTests.rules
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1509
|
+
test: _pluginTest
|
|
1508
1510
|
}
|
|
1509
1511
|
},
|
|
1510
1512
|
{
|
package/dist/index.js
CHANGED
|
@@ -1380,6 +1380,7 @@ async function svelte(options = {}) {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
1382
|
// src/configs/test.ts
|
|
1383
|
+
var _pluginTest;
|
|
1383
1384
|
async function test(options = {}) {
|
|
1384
1385
|
const {
|
|
1385
1386
|
files = GLOB_TESTS,
|
|
@@ -1394,18 +1395,19 @@ async function test(options = {}) {
|
|
|
1394
1395
|
// @ts-expect-error missing types
|
|
1395
1396
|
interopDefault(import("eslint-plugin-no-only-tests"))
|
|
1396
1397
|
]);
|
|
1398
|
+
_pluginTest = _pluginTest || {
|
|
1399
|
+
...pluginVitest,
|
|
1400
|
+
rules: {
|
|
1401
|
+
...pluginVitest.rules,
|
|
1402
|
+
// extend `test/no-only-tests` rule
|
|
1403
|
+
...pluginNoOnlyTests.rules
|
|
1404
|
+
}
|
|
1405
|
+
};
|
|
1397
1406
|
return [
|
|
1398
1407
|
{
|
|
1399
1408
|
name: "antfu/test/setup",
|
|
1400
1409
|
plugins: {
|
|
1401
|
-
test:
|
|
1402
|
-
...pluginVitest,
|
|
1403
|
-
rules: {
|
|
1404
|
-
...pluginVitest.rules,
|
|
1405
|
-
// extend `test/no-only-tests` rule
|
|
1406
|
-
...pluginNoOnlyTests.rules
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1410
|
+
test: _pluginTest
|
|
1409
1411
|
}
|
|
1410
1412
|
},
|
|
1411
1413
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antfu/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.13.
|
|
4
|
+
"version": "2.13.3",
|
|
5
5
|
"packageManager": "pnpm@8.15.6",
|
|
6
6
|
"description": "Anthony's ESLint config",
|
|
7
7
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"eslint-plugin-toml": "^0.11.0",
|
|
99
99
|
"eslint-plugin-unicorn": "^52.0.0",
|
|
100
100
|
"eslint-plugin-unused-imports": "^3.1.0",
|
|
101
|
-
"eslint-plugin-vitest": "^0.5.
|
|
101
|
+
"eslint-plugin-vitest": "^0.5.1",
|
|
102
102
|
"eslint-plugin-vue": "^9.24.1",
|
|
103
103
|
"eslint-plugin-yml": "^1.14.0",
|
|
104
104
|
"eslint-processor-vue-blocks": "^0.1.1",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
117
117
|
"@antfu/ni": "^0.21.12",
|
|
118
|
-
"@eslint/config-inspector": "^0.4.
|
|
118
|
+
"@eslint/config-inspector": "^0.4.5",
|
|
119
119
|
"@stylistic/eslint-plugin-migrate": "^1.7.0",
|
|
120
120
|
"@types/eslint": "^8.56.7",
|
|
121
121
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -125,6 +125,7 @@
|
|
|
125
125
|
"@unocss/eslint-plugin": "^0.59.0",
|
|
126
126
|
"astro-eslint-parser": "^0.17.0",
|
|
127
127
|
"bumpp": "^9.4.0",
|
|
128
|
+
"bundle-require": "^4.0.2",
|
|
128
129
|
"eslint": "^9.0.0",
|
|
129
130
|
"eslint-plugin-astro": "^0.34.0",
|
|
130
131
|
"eslint-plugin-format": "^0.1.0",
|
|
@@ -149,7 +150,7 @@
|
|
|
149
150
|
"typescript": "^5.4.4",
|
|
150
151
|
"vitest": "^1.4.0",
|
|
151
152
|
"vue": "^3.4.21",
|
|
152
|
-
"@antfu/eslint-config": "2.13.
|
|
153
|
+
"@antfu/eslint-config": "2.13.3"
|
|
153
154
|
},
|
|
154
155
|
"simple-git-hooks": {
|
|
155
156
|
"pre-commit": "pnpm lint-staged"
|
|
@@ -160,7 +161,7 @@
|
|
|
160
161
|
"scripts": {
|
|
161
162
|
"build": "nr typegen && tsup --format esm,cjs --clean --dts",
|
|
162
163
|
"stub": "tsup --format esm",
|
|
163
|
-
"dev": "
|
|
164
|
+
"dev": "npx @eslint/config-inspector --config eslint.config.ts",
|
|
164
165
|
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
165
166
|
"watch": "tsup --format esm,cjs --watch",
|
|
166
167
|
"lint": "eslint .",
|