@antfu/eslint-config 7.4.0 → 7.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.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -2
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -20369,7 +20369,7 @@ declare function disables(): Promise<TypedFlatConfigItem[]>;
|
|
|
20369
20369
|
declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
|
|
20370
20370
|
//#endregion
|
|
20371
20371
|
//#region src/configs/ignores.d.ts
|
|
20372
|
-
declare function ignores(userIgnores?: string[] | ((originals: string[]) => string[])): Promise<TypedFlatConfigItem[]>;
|
|
20372
|
+
declare function ignores(userIgnores?: string[] | ((originals: string[]) => string[]), ignoreTypeScript?: boolean): Promise<TypedFlatConfigItem[]>;
|
|
20373
20373
|
//#endregion
|
|
20374
20374
|
//#region src/configs/imports.d.ts
|
|
20375
20375
|
declare function imports(options?: OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
|
package/dist/index.mjs
CHANGED
|
@@ -645,8 +645,9 @@ async function formatters(options = {}, stylistic$1 = {}) {
|
|
|
645
645
|
|
|
646
646
|
//#endregion
|
|
647
647
|
//#region src/configs/ignores.ts
|
|
648
|
-
async function ignores(userIgnores = []) {
|
|
648
|
+
async function ignores(userIgnores = [], ignoreTypeScript = false) {
|
|
649
649
|
let ignores$1 = [...GLOB_EXCLUDE];
|
|
650
|
+
if (ignoreTypeScript) ignores$1.push(GLOB_TS, GLOB_TSX);
|
|
650
651
|
if (typeof userIgnores === "function") ignores$1 = userIgnores(ignores$1);
|
|
651
652
|
else ignores$1 = [...ignores$1, ...userIgnores];
|
|
652
653
|
return [{
|
|
@@ -2485,7 +2486,7 @@ function antfu(options = {}, ...userConfigs) {
|
|
|
2485
2486
|
})]));
|
|
2486
2487
|
const typescriptOptions = resolveSubOptions(options, "typescript");
|
|
2487
2488
|
const tsconfigPath = "tsconfigPath" in typescriptOptions ? typescriptOptions.tsconfigPath : void 0;
|
|
2488
|
-
configs$1.push(ignores(userIgnores), javascript({
|
|
2489
|
+
configs$1.push(ignores(userIgnores, !enableTypeScript), javascript({
|
|
2489
2490
|
isInEditor,
|
|
2490
2491
|
overrides: getOverrides(options, "javascript")
|
|
2491
2492
|
}), comments(), command(), perfectionist());
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antfu/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.4.
|
|
4
|
+
"version": "7.4.1",
|
|
5
5
|
"description": "Anthony's ESLint config",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"typescript": "^5.9.3",
|
|
193
193
|
"vitest": "^4.0.18",
|
|
194
194
|
"vue": "^3.5.28",
|
|
195
|
-
"@antfu/eslint-config": "7.4.
|
|
195
|
+
"@antfu/eslint-config": "7.4.1"
|
|
196
196
|
},
|
|
197
197
|
"resolutions": {
|
|
198
198
|
"@eslint-community/eslint-utils": "catalog:peer",
|