@antfu/eslint-config 2.4.0 → 2.4.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/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/package.json +2 -2
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.4.
|
|
49
|
+
var version = "2.4.1";
|
|
50
50
|
var devDependencies = {
|
|
51
51
|
"@antfu/eslint-config": "workspace:*",
|
|
52
52
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1565,8 +1565,8 @@ async function vue(options = {}) {
|
|
|
1565
1565
|
processorVueBlocks({
|
|
1566
1566
|
...sfcBlocks,
|
|
1567
1567
|
blocks: {
|
|
1568
|
-
|
|
1569
|
-
|
|
1568
|
+
styles: true,
|
|
1569
|
+
...sfcBlocks.blocks
|
|
1570
1570
|
}
|
|
1571
1571
|
})
|
|
1572
1572
|
]),
|
|
@@ -1798,6 +1798,7 @@ async function antfu(options = {}, ...userConfigs) {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
if (enableVue) {
|
|
1800
1800
|
configs.push(vue({
|
|
1801
|
+
...typeof enableVue !== "boolean" ? enableVue : {},
|
|
1801
1802
|
overrides: overrides.vue,
|
|
1802
1803
|
stylistic: stylisticOptions,
|
|
1803
1804
|
typescript: !!enableTypeScript
|
package/dist/index.d.cts
CHANGED
|
@@ -275,7 +275,7 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
275
275
|
*
|
|
276
276
|
* @default auto-detect based on the dependencies
|
|
277
277
|
*/
|
|
278
|
-
vue?: boolean;
|
|
278
|
+
vue?: boolean | OptionsVue;
|
|
279
279
|
/**
|
|
280
280
|
* Enable JSONC support.
|
|
281
281
|
*
|
|
@@ -409,7 +409,7 @@ declare function unicorn(): Promise<FlatConfigItem[]>;
|
|
|
409
409
|
|
|
410
410
|
declare function unocss(options?: OptionsUnoCSS): Promise<FlatConfigItem[]>;
|
|
411
411
|
|
|
412
|
-
declare function vue(options?: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles
|
|
412
|
+
declare function vue(options?: OptionsVue & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<FlatConfigItem[]>;
|
|
413
413
|
|
|
414
414
|
declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<FlatConfigItem[]>;
|
|
415
415
|
|
package/dist/index.d.ts
CHANGED
|
@@ -275,7 +275,7 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
275
275
|
*
|
|
276
276
|
* @default auto-detect based on the dependencies
|
|
277
277
|
*/
|
|
278
|
-
vue?: boolean;
|
|
278
|
+
vue?: boolean | OptionsVue;
|
|
279
279
|
/**
|
|
280
280
|
* Enable JSONC support.
|
|
281
281
|
*
|
|
@@ -409,7 +409,7 @@ declare function unicorn(): Promise<FlatConfigItem[]>;
|
|
|
409
409
|
|
|
410
410
|
declare function unocss(options?: OptionsUnoCSS): Promise<FlatConfigItem[]>;
|
|
411
411
|
|
|
412
|
-
declare function vue(options?: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles
|
|
412
|
+
declare function vue(options?: OptionsVue & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<FlatConfigItem[]>;
|
|
413
413
|
|
|
414
414
|
declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<FlatConfigItem[]>;
|
|
415
415
|
|
package/dist/index.js
CHANGED
|
@@ -1479,8 +1479,8 @@ async function vue(options = {}) {
|
|
|
1479
1479
|
processorVueBlocks({
|
|
1480
1480
|
...sfcBlocks,
|
|
1481
1481
|
blocks: {
|
|
1482
|
-
|
|
1483
|
-
|
|
1482
|
+
styles: true,
|
|
1483
|
+
...sfcBlocks.blocks
|
|
1484
1484
|
}
|
|
1485
1485
|
})
|
|
1486
1486
|
]),
|
|
@@ -1712,6 +1712,7 @@ async function antfu(options = {}, ...userConfigs) {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
if (enableVue) {
|
|
1714
1714
|
configs.push(vue({
|
|
1715
|
+
...typeof enableVue !== "boolean" ? enableVue : {},
|
|
1715
1716
|
overrides: overrides.vue,
|
|
1716
1717
|
stylistic: stylisticOptions,
|
|
1717
1718
|
typescript: !!enableTypeScript
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antfu/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.1",
|
|
5
5
|
"packageManager": "pnpm@8.11.0",
|
|
6
6
|
"description": "Anthony's ESLint config",
|
|
7
7
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"typescript": "^5.3.3",
|
|
115
115
|
"vitest": "^1.0.2",
|
|
116
116
|
"vue": "^3.3.10",
|
|
117
|
-
"@antfu/eslint-config": "2.4.
|
|
117
|
+
"@antfu/eslint-config": "2.4.1"
|
|
118
118
|
},
|
|
119
119
|
"simple-git-hooks": {
|
|
120
120
|
"pre-commit": "pnpm lint-staged"
|