@ariel-salgado/eslint-config 0.3.2 → 0.3.4
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.mts +3 -18
- package/dist/index.mjs +80 -86826
- package/package.json +2 -3
package/dist/index.d.mts
CHANGED
|
@@ -2883,7 +2883,7 @@ interface RuleOptions {
|
|
|
2883
2883
|
*/
|
|
2884
2884
|
'quotes'?: Linter.RuleEntry<Quotes>;
|
|
2885
2885
|
/**
|
|
2886
|
-
* Enforce the
|
|
2886
|
+
* Enforce the use of the radix argument when using `parseInt()`
|
|
2887
2887
|
* @see https://eslint.org/docs/latest/rules/radix
|
|
2888
2888
|
*/
|
|
2889
2889
|
'radix'?: Linter.RuleEntry<Radix>;
|
|
@@ -8880,6 +8880,7 @@ type MaxParams = [] | [(number | {
|
|
|
8880
8880
|
maximum?: number;
|
|
8881
8881
|
max?: number;
|
|
8882
8882
|
countVoidThis?: boolean;
|
|
8883
|
+
countThis?: ("never" | "except-void" | "always");
|
|
8883
8884
|
})]; // ----- max-statements -----
|
|
8884
8885
|
type MaxStatements = [] | [(number | {
|
|
8885
8886
|
maximum?: number;
|
|
@@ -15818,12 +15819,6 @@ interface OptionsPnpm {
|
|
|
15818
15819
|
interface OptionsReact extends OptionsOverrides {
|
|
15819
15820
|
reactCompiler?: boolean;
|
|
15820
15821
|
}
|
|
15821
|
-
interface OptionsBaseline {
|
|
15822
|
-
level?: 'error' | 'warn';
|
|
15823
|
-
baseline?: 'widely' | 'newly' | number;
|
|
15824
|
-
available?: 'widely' | 'newly' | number;
|
|
15825
|
-
ignoreFeatures?: string[];
|
|
15826
|
-
}
|
|
15827
15822
|
interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
15828
15823
|
/**
|
|
15829
15824
|
* Enable gitignore support.
|
|
@@ -15997,12 +15992,6 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
15997
15992
|
* @default true
|
|
15998
15993
|
*/
|
|
15999
15994
|
autoRenamePlugins?: boolean;
|
|
16000
|
-
/**
|
|
16001
|
-
* Enforce the Javascript baseline
|
|
16002
|
-
*
|
|
16003
|
-
* @default false
|
|
16004
|
-
*/
|
|
16005
|
-
baseline?: boolean | OptionsBaseline;
|
|
16006
15995
|
/**
|
|
16007
15996
|
* Provide overrides for rules for each integration.
|
|
16008
15997
|
*
|
|
@@ -16032,7 +16021,6 @@ declare const default_plugin_renaming: {
|
|
|
16032
16021
|
'@next/next': string;
|
|
16033
16022
|
'@stylistic': string;
|
|
16034
16023
|
'@typescript-eslint': string;
|
|
16035
|
-
'baseline-js': string;
|
|
16036
16024
|
'better-tailwindcss': string;
|
|
16037
16025
|
'import-lite': string;
|
|
16038
16026
|
n: string;
|
|
@@ -16054,9 +16042,6 @@ type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
|
16054
16042
|
declare function resolve_sub_options<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
|
|
16055
16043
|
declare function get_overrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
|
|
16056
16044
|
//#endregion
|
|
16057
|
-
//#region src/configs/baseline.d.ts
|
|
16058
|
-
declare function baseline(options: OptionsBaseline | boolean): Promise<TypedFlatConfigItem[]>;
|
|
16059
|
-
//#endregion
|
|
16060
16045
|
//#region src/configs/comments.d.ts
|
|
16061
16046
|
declare function comments(): Promise<TypedFlatConfigItem[]>;
|
|
16062
16047
|
//#endregion
|
|
@@ -16201,4 +16186,4 @@ declare function interop_default<T>(m: Awaitable<T>): Promise<T extends {
|
|
|
16201
16186
|
declare function is_package_in_scope(name: string): boolean;
|
|
16202
16187
|
declare function ensure_packages(packages: (string | undefined)[]): Promise<void>;
|
|
16203
16188
|
//#endregion
|
|
16204
|
-
export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, 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_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_XML, GLOB_YAML,
|
|
16189
|
+
export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, 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_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTailwindCSS, OptionsHasTypeScript, OptionsJSX, OptionsJSXA11y, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsReact, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, ResolvedOptions, type RuleOptions, Rules, StylisticConfig, StylisticOptions, TailwindCSSOptions, TypedFlatConfigItem, combine, comments, defineConfig as default, defineConfig, default_plugin_renaming, defaults, disables, ensure_packages, get_overrides, ignores, imports, interop_default, is_package_in_scope, javascript, jsdoc, jsonc, jsx, markdown, morgan, nextjs, node, parser_plain, perfectionist, pnpm, react, regexp, rename_plugin_in_configs, rename_rules, resolve_sub_options, solid, sort_package_json, sort_ts_config, stylistic, svelte, tailwindcss, test, to_array, toml, typescript, unicorn, yaml };
|