@lntvow/eslint-config 9.3.1 → 9.3.5
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/README.md +6 -6
- package/dist/index.cjs +1017 -1
- package/dist/index.d.cts +15 -12
- package/dist/index.d.ts +15 -12
- package/dist/index.js +938 -1
- package/package.json +6 -4
package/dist/index.d.cts
CHANGED
|
@@ -15106,14 +15106,7 @@ type ConfigNames = 'antfu/astro/setup' | 'antfu/astro/rules' | 'antfu/eslint-com
|
|
|
15106
15106
|
type Awaitable<T> = T | Promise<T>;
|
|
15107
15107
|
type Rules = RuleOptions;
|
|
15108
15108
|
|
|
15109
|
-
type TypedFlatConfigItem =
|
|
15110
|
-
/**
|
|
15111
|
-
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
|
|
15112
|
-
*
|
|
15113
|
-
* @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
|
|
15114
|
-
*/
|
|
15115
|
-
plugins?: Record<string, any>;
|
|
15116
|
-
};
|
|
15109
|
+
type TypedFlatConfigItem = Linter.FlatConfig<Linter.RulesRecord & Rules>;
|
|
15117
15110
|
interface OptionsVue extends OptionsOverrides {
|
|
15118
15111
|
/**
|
|
15119
15112
|
* Vue version. Apply different rules set from `eslint-plugin-vue`.
|
|
@@ -15193,10 +15186,9 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
15193
15186
|
/**
|
|
15194
15187
|
* Enable stylistic rules.
|
|
15195
15188
|
*
|
|
15196
|
-
* @
|
|
15197
|
-
* @default true
|
|
15189
|
+
* @default auto-detect based on the dependencies
|
|
15198
15190
|
*/
|
|
15199
|
-
|
|
15191
|
+
test?: boolean | OptionsOverrides;
|
|
15200
15192
|
/**
|
|
15201
15193
|
* Enable regexp rules.
|
|
15202
15194
|
*
|
|
@@ -15204,6 +15196,13 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
15204
15196
|
* @default true
|
|
15205
15197
|
*/
|
|
15206
15198
|
regexp?: boolean | OptionsOverrides;
|
|
15199
|
+
/**
|
|
15200
|
+
* Enable stylistic rules.
|
|
15201
|
+
*
|
|
15202
|
+
* @see https://eslint.style/
|
|
15203
|
+
* @default true
|
|
15204
|
+
*/
|
|
15205
|
+
stylistic?: boolean | StylisticConfig;
|
|
15207
15206
|
/**
|
|
15208
15207
|
* Enable gitignore support.
|
|
15209
15208
|
*
|
|
@@ -15244,6 +15243,8 @@ declare function renameRules(rules: AnyObject, map: Record<string, string>): {
|
|
|
15244
15243
|
[k: string]: any;
|
|
15245
15244
|
};
|
|
15246
15245
|
|
|
15246
|
+
declare function custom(): Promise<TypedFlatConfigItem[]>;
|
|
15247
|
+
|
|
15247
15248
|
declare function gitignore(options: FlatGitignoreOptions): Promise<TypedFlatConfigItem[]>;
|
|
15248
15249
|
|
|
15249
15250
|
declare function ignores(): Promise<TypedFlatConfigItem[]>;
|
|
@@ -15259,6 +15260,8 @@ declare function regexp(options?: OptionsOverrides): Promise<TypedFlatConfigItem
|
|
|
15259
15260
|
declare const StylisticConfigDefaults: StylisticConfig;
|
|
15260
15261
|
declare function stylistic(options?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
|
|
15261
15262
|
|
|
15263
|
+
declare function test(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
15264
|
+
|
|
15262
15265
|
declare function typescript(options?: OptionsTypeScript & OptionsComponentExts): Promise<TypedFlatConfigItem[]>;
|
|
15263
15266
|
|
|
15264
15267
|
declare function vue(options?: OptionsVue): Promise<TypedFlatConfigItem[]>;
|
|
@@ -15293,4 +15296,4 @@ declare const GLOB_TESTS: string[];
|
|
|
15293
15296
|
declare const GLOB_ALL_SRC: string[];
|
|
15294
15297
|
declare const GLOB_EXCLUDE: string[];
|
|
15295
15298
|
|
|
15296
|
-
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, StylisticConfigDefaults, lntvow as default, getVueVersion, gitignore, ignores, imports, javascript, lntvow, prettier, regexp, renameRules, stylistic, typescript, vue };
|
|
15299
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, StylisticConfigDefaults, custom, lntvow as default, getVueVersion, gitignore, ignores, imports, javascript, lntvow, prettier, regexp, renameRules, stylistic, test, typescript, vue };
|
package/dist/index.d.ts
CHANGED
|
@@ -15106,14 +15106,7 @@ type ConfigNames = 'antfu/astro/setup' | 'antfu/astro/rules' | 'antfu/eslint-com
|
|
|
15106
15106
|
type Awaitable<T> = T | Promise<T>;
|
|
15107
15107
|
type Rules = RuleOptions;
|
|
15108
15108
|
|
|
15109
|
-
type TypedFlatConfigItem =
|
|
15110
|
-
/**
|
|
15111
|
-
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
|
|
15112
|
-
*
|
|
15113
|
-
* @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
|
|
15114
|
-
*/
|
|
15115
|
-
plugins?: Record<string, any>;
|
|
15116
|
-
};
|
|
15109
|
+
type TypedFlatConfigItem = Linter.FlatConfig<Linter.RulesRecord & Rules>;
|
|
15117
15110
|
interface OptionsVue extends OptionsOverrides {
|
|
15118
15111
|
/**
|
|
15119
15112
|
* Vue version. Apply different rules set from `eslint-plugin-vue`.
|
|
@@ -15193,10 +15186,9 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
15193
15186
|
/**
|
|
15194
15187
|
* Enable stylistic rules.
|
|
15195
15188
|
*
|
|
15196
|
-
* @
|
|
15197
|
-
* @default true
|
|
15189
|
+
* @default auto-detect based on the dependencies
|
|
15198
15190
|
*/
|
|
15199
|
-
|
|
15191
|
+
test?: boolean | OptionsOverrides;
|
|
15200
15192
|
/**
|
|
15201
15193
|
* Enable regexp rules.
|
|
15202
15194
|
*
|
|
@@ -15204,6 +15196,13 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
15204
15196
|
* @default true
|
|
15205
15197
|
*/
|
|
15206
15198
|
regexp?: boolean | OptionsOverrides;
|
|
15199
|
+
/**
|
|
15200
|
+
* Enable stylistic rules.
|
|
15201
|
+
*
|
|
15202
|
+
* @see https://eslint.style/
|
|
15203
|
+
* @default true
|
|
15204
|
+
*/
|
|
15205
|
+
stylistic?: boolean | StylisticConfig;
|
|
15207
15206
|
/**
|
|
15208
15207
|
* Enable gitignore support.
|
|
15209
15208
|
*
|
|
@@ -15244,6 +15243,8 @@ declare function renameRules(rules: AnyObject, map: Record<string, string>): {
|
|
|
15244
15243
|
[k: string]: any;
|
|
15245
15244
|
};
|
|
15246
15245
|
|
|
15246
|
+
declare function custom(): Promise<TypedFlatConfigItem[]>;
|
|
15247
|
+
|
|
15247
15248
|
declare function gitignore(options: FlatGitignoreOptions): Promise<TypedFlatConfigItem[]>;
|
|
15248
15249
|
|
|
15249
15250
|
declare function ignores(): Promise<TypedFlatConfigItem[]>;
|
|
@@ -15259,6 +15260,8 @@ declare function regexp(options?: OptionsOverrides): Promise<TypedFlatConfigItem
|
|
|
15259
15260
|
declare const StylisticConfigDefaults: StylisticConfig;
|
|
15260
15261
|
declare function stylistic(options?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
|
|
15261
15262
|
|
|
15263
|
+
declare function test(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
15264
|
+
|
|
15262
15265
|
declare function typescript(options?: OptionsTypeScript & OptionsComponentExts): Promise<TypedFlatConfigItem[]>;
|
|
15263
15266
|
|
|
15264
15267
|
declare function vue(options?: OptionsVue): Promise<TypedFlatConfigItem[]>;
|
|
@@ -15293,4 +15296,4 @@ declare const GLOB_TESTS: string[];
|
|
|
15293
15296
|
declare const GLOB_ALL_SRC: string[];
|
|
15294
15297
|
declare const GLOB_EXCLUDE: string[];
|
|
15295
15298
|
|
|
15296
|
-
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, StylisticConfigDefaults, lntvow as default, getVueVersion, gitignore, ignores, imports, javascript, lntvow, prettier, regexp, renameRules, stylistic, typescript, vue };
|
|
15299
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, StylisticConfigDefaults, custom, lntvow as default, getVueVersion, gitignore, ignores, imports, javascript, lntvow, prettier, regexp, renameRules, stylistic, test, typescript, vue };
|