@dhzh/eslint-config 0.3.0 → 0.4.0

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/index.d.cts CHANGED
@@ -9120,7 +9120,7 @@ type NoConsole = []|[{
9120
9120
  }]
9121
9121
  // ----- no-constant-condition -----
9122
9122
  type NoConstantCondition = []|[{
9123
- checkLoops?: boolean
9123
+ checkLoops?: ("all" | "allExceptWhileTrue" | "none" | true | false)
9124
9124
  }]
9125
9125
  // ----- no-duplicate-imports -----
9126
9126
  type NoDuplicateImports = []|[{
@@ -13981,7 +13981,7 @@ type VueNoConsole = []|[{
13981
13981
  }]
13982
13982
  // ----- vue/no-constant-condition -----
13983
13983
  type VueNoConstantCondition = []|[{
13984
- checkLoops?: boolean
13984
+ checkLoops?: ("all" | "allExceptWhileTrue" | "none" | true | false)
13985
13985
  }]
13986
13986
  // ----- vue/no-deprecated-model-definition -----
13987
13987
  type VueNoDeprecatedModelDefinition = []|[{
@@ -14991,8 +14991,14 @@ type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
14991
14991
  declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
14992
14992
  declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): any;
14993
14993
 
14994
+ declare function astro(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
14995
+
14996
+ declare function command(): Promise<TypedFlatConfigItem[]>;
14997
+
14994
14998
  declare function comments(): Promise<TypedFlatConfigItem[]>;
14995
14999
 
15000
+ declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
15001
+
14996
15002
  declare function ignores(): Promise<TypedFlatConfigItem[]>;
14997
15003
 
14998
15004
  declare function imports(options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
@@ -15014,10 +15020,10 @@ declare function node(): Promise<TypedFlatConfigItem[]>;
15014
15020
  */
15015
15021
  declare function perfectionist(): Promise<TypedFlatConfigItem[]>;
15016
15022
 
15017
- declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
15018
-
15019
15023
  declare function react(options?: OptionsTypeScriptWithTypes & OptionsOverrides & OptionsFiles): Promise<TypedFlatConfigItem[]>;
15020
15024
 
15025
+ declare function solid(options?: OptionsHasTypeScript & OptionsOverrides & OptionsFiles & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
15026
+
15021
15027
  /**
15022
15028
  * Sort package.json
15023
15029
  *
@@ -15041,6 +15047,8 @@ declare function svelte(options?: OptionsHasTypeScript & OptionsOverrides & Opti
15041
15047
 
15042
15048
  declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
15043
15049
 
15050
+ declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
15051
+
15044
15052
  declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions): Promise<TypedFlatConfigItem[]>;
15045
15053
 
15046
15054
  declare function unicorn(): Promise<TypedFlatConfigItem[]>;
@@ -15051,12 +15059,6 @@ declare function vue(options?: OptionsVue & OptionsHasTypeScript & OptionsOverri
15051
15059
 
15052
15060
  declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
15053
15061
 
15054
- declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
15055
-
15056
- declare function astro(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
15057
-
15058
- declare function solid(options?: OptionsHasTypeScript & OptionsOverrides & OptionsFiles & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
15059
-
15060
15062
  declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
15061
15063
  declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
15062
15064
  declare const GLOB_JS = "**/*.?([cm])js";
@@ -15156,4 +15158,4 @@ declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
15156
15158
  } ? U : T>;
15157
15159
  declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
15158
15160
 
15159
- export { type Awaitable, type ConfigNames, 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_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type ResolvedOptions, type Rules, type StylisticConfig, StylisticConfigDefaults, type StylisticOptions, type TypedFlatConfigItem, astro, combine, comments, dhzh as default, defaultPluginRenaming, dhzh, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, javascript, jsdoc, jsonc, markdown, node, parserPlain, perfectionist, react, renamePluginInConfigs, renameRules, resolveSubOptions, solid, sortPackageJson, sortTsconfig, stylistic, svelte, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
15161
+ export { type Awaitable, type ConfigNames, 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_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type ResolvedOptions, type Rules, type StylisticConfig, StylisticConfigDefaults, type StylisticOptions, type TypedFlatConfigItem, astro, combine, command, comments, dhzh as default, defaultPluginRenaming, dhzh, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, javascript, jsdoc, jsonc, markdown, node, parserPlain, perfectionist, react, renamePluginInConfigs, renameRules, resolveSubOptions, solid, sortPackageJson, sortTsconfig, stylistic, svelte, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
package/dist/index.d.ts CHANGED
@@ -9120,7 +9120,7 @@ type NoConsole = []|[{
9120
9120
  }]
9121
9121
  // ----- no-constant-condition -----
9122
9122
  type NoConstantCondition = []|[{
9123
- checkLoops?: boolean
9123
+ checkLoops?: ("all" | "allExceptWhileTrue" | "none" | true | false)
9124
9124
  }]
9125
9125
  // ----- no-duplicate-imports -----
9126
9126
  type NoDuplicateImports = []|[{
@@ -13981,7 +13981,7 @@ type VueNoConsole = []|[{
13981
13981
  }]
13982
13982
  // ----- vue/no-constant-condition -----
13983
13983
  type VueNoConstantCondition = []|[{
13984
- checkLoops?: boolean
13984
+ checkLoops?: ("all" | "allExceptWhileTrue" | "none" | true | false)
13985
13985
  }]
13986
13986
  // ----- vue/no-deprecated-model-definition -----
13987
13987
  type VueNoDeprecatedModelDefinition = []|[{
@@ -14991,8 +14991,14 @@ type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
14991
14991
  declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
14992
14992
  declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): any;
14993
14993
 
14994
+ declare function astro(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
14995
+
14996
+ declare function command(): Promise<TypedFlatConfigItem[]>;
14997
+
14994
14998
  declare function comments(): Promise<TypedFlatConfigItem[]>;
14995
14999
 
15000
+ declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
15001
+
14996
15002
  declare function ignores(): Promise<TypedFlatConfigItem[]>;
14997
15003
 
14998
15004
  declare function imports(options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
@@ -15014,10 +15020,10 @@ declare function node(): Promise<TypedFlatConfigItem[]>;
15014
15020
  */
15015
15021
  declare function perfectionist(): Promise<TypedFlatConfigItem[]>;
15016
15022
 
15017
- declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
15018
-
15019
15023
  declare function react(options?: OptionsTypeScriptWithTypes & OptionsOverrides & OptionsFiles): Promise<TypedFlatConfigItem[]>;
15020
15024
 
15025
+ declare function solid(options?: OptionsHasTypeScript & OptionsOverrides & OptionsFiles & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
15026
+
15021
15027
  /**
15022
15028
  * Sort package.json
15023
15029
  *
@@ -15041,6 +15047,8 @@ declare function svelte(options?: OptionsHasTypeScript & OptionsOverrides & Opti
15041
15047
 
15042
15048
  declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
15043
15049
 
15050
+ declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
15051
+
15044
15052
  declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions): Promise<TypedFlatConfigItem[]>;
15045
15053
 
15046
15054
  declare function unicorn(): Promise<TypedFlatConfigItem[]>;
@@ -15051,12 +15059,6 @@ declare function vue(options?: OptionsVue & OptionsHasTypeScript & OptionsOverri
15051
15059
 
15052
15060
  declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
15053
15061
 
15054
- declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
15055
-
15056
- declare function astro(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
15057
-
15058
- declare function solid(options?: OptionsHasTypeScript & OptionsOverrides & OptionsFiles & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
15059
-
15060
15062
  declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
15061
15063
  declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
15062
15064
  declare const GLOB_JS = "**/*.?([cm])js";
@@ -15156,4 +15158,4 @@ declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
15156
15158
  } ? U : T>;
15157
15159
  declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
15158
15160
 
15159
- export { type Awaitable, type ConfigNames, 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_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type ResolvedOptions, type Rules, type StylisticConfig, StylisticConfigDefaults, type StylisticOptions, type TypedFlatConfigItem, astro, combine, comments, dhzh as default, defaultPluginRenaming, dhzh, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, javascript, jsdoc, jsonc, markdown, node, parserPlain, perfectionist, react, renamePluginInConfigs, renameRules, resolveSubOptions, solid, sortPackageJson, sortTsconfig, stylistic, svelte, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
15161
+ export { type Awaitable, type ConfigNames, 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_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type ResolvedOptions, type Rules, type StylisticConfig, StylisticConfigDefaults, type StylisticOptions, type TypedFlatConfigItem, astro, combine, command, comments, dhzh as default, defaultPluginRenaming, dhzh, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, javascript, jsdoc, jsonc, markdown, node, parserPlain, perfectionist, react, renamePluginInConfigs, renameRules, resolveSubOptions, solid, sortPackageJson, sortTsconfig, stylistic, svelte, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };