@jsse/eslint-config 0.5.2 → 0.6.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/CHANGELOG.md +13 -0
- package/dist/{chunk-CdeBBKNj.js → chunk-CSNpwdVU.js} +13 -23
- package/dist/cli.js +266 -227
- package/dist/index.d.ts +63 -80
- package/dist/index.js +1281 -7900
- package/dist/{version-BMOOQznP.js → version-CEQ23cMl.js} +2 -5
- package/package.json +21 -19
package/dist/index.d.ts
CHANGED
|
@@ -3022,6 +3022,7 @@ interface EslintCommentsRuleOptions {
|
|
|
3022
3022
|
/**
|
|
3023
3023
|
* disallow unused `eslint-disable` comments
|
|
3024
3024
|
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
3025
|
+
* @deprecated
|
|
3025
3026
|
*/
|
|
3026
3027
|
"eslint-comments/no-unused-disable"?: Linter.RuleEntry<[]>;
|
|
3027
3028
|
/**
|
|
@@ -9748,33 +9749,33 @@ type StylisticExpListStyle = [] | [{
|
|
|
9748
9749
|
singleLine?: _StylisticExpListStyle_SingleLineConfig;
|
|
9749
9750
|
multiLine?: _StylisticExpListStyle_MultiLineConfig;
|
|
9750
9751
|
overrides?: {
|
|
9751
|
-
"()"?: _StylisticExpListStyle_BaseConfig;
|
|
9752
|
-
"[]"?: _StylisticExpListStyle_BaseConfig;
|
|
9753
|
-
"{}"?: _StylisticExpListStyle_BaseConfig;
|
|
9754
|
-
"<>"?: _StylisticExpListStyle_BaseConfig;
|
|
9755
|
-
ArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9756
|
-
ArrayPattern?: _StylisticExpListStyle_BaseConfig;
|
|
9757
|
-
ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9758
|
-
CallExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9759
|
-
ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9760
|
-
FunctionDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9761
|
-
FunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9762
|
-
IfStatement?: _StylisticExpListStyle_BaseConfig;
|
|
9763
|
-
ImportAttributes?: _StylisticExpListStyle_BaseConfig;
|
|
9764
|
-
ImportDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9765
|
-
JSONArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9766
|
-
JSONObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9767
|
-
NewExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9768
|
-
ObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9769
|
-
ObjectPattern?: _StylisticExpListStyle_BaseConfig;
|
|
9770
|
-
TSDeclareFunction?: _StylisticExpListStyle_BaseConfig;
|
|
9771
|
-
TSEnumBody?: _StylisticExpListStyle_BaseConfig;
|
|
9772
|
-
TSFunctionType?: _StylisticExpListStyle_BaseConfig;
|
|
9773
|
-
TSInterfaceBody?: _StylisticExpListStyle_BaseConfig;
|
|
9774
|
-
TSTupleType?: _StylisticExpListStyle_BaseConfig;
|
|
9775
|
-
TSTypeLiteral?: _StylisticExpListStyle_BaseConfig;
|
|
9776
|
-
TSTypeParameterDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9777
|
-
TSTypeParameterInstantiation?: _StylisticExpListStyle_BaseConfig;
|
|
9752
|
+
"()"?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9753
|
+
"[]"?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9754
|
+
"{}"?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9755
|
+
"<>"?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9756
|
+
ArrayExpression?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9757
|
+
ArrayPattern?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9758
|
+
ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9759
|
+
CallExpression?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9760
|
+
ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9761
|
+
FunctionDeclaration?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9762
|
+
FunctionExpression?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9763
|
+
IfStatement?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9764
|
+
ImportAttributes?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9765
|
+
ImportDeclaration?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9766
|
+
JSONArrayExpression?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9767
|
+
JSONObjectExpression?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9768
|
+
NewExpression?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9769
|
+
ObjectExpression?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9770
|
+
ObjectPattern?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9771
|
+
TSDeclareFunction?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9772
|
+
TSEnumBody?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9773
|
+
TSFunctionType?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9774
|
+
TSInterfaceBody?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9775
|
+
TSTupleType?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9776
|
+
TSTypeLiteral?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9777
|
+
TSTypeParameterDeclaration?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9778
|
+
TSTypeParameterInstantiation?: _StylisticExpListStyle_BaseConfig | "off";
|
|
9778
9779
|
};
|
|
9779
9780
|
}];
|
|
9780
9781
|
interface _StylisticExpListStyle_SingleLineConfig {
|
|
@@ -10645,6 +10646,7 @@ type StylisticPaddingLineBetweenStatements = {
|
|
|
10645
10646
|
}[];
|
|
10646
10647
|
interface _StylisticPaddingLineBetweenStatements_SelectorOption {
|
|
10647
10648
|
selector: string;
|
|
10649
|
+
lineMode?: "any" | "singleline" | "multiline";
|
|
10648
10650
|
} // ----- @stylistic/quote-props -----
|
|
10649
10651
|
type StylisticQuoteProps = [] | ["always" | "as-needed" | "consistent" | "consistent-as-needed"] | [] | ["always" | "as-needed" | "consistent" | "consistent-as-needed"] | ["always" | "as-needed" | "consistent" | "consistent-as-needed", {
|
|
10650
10652
|
keywords?: boolean;
|
|
@@ -12486,6 +12488,18 @@ type TypescriptEslintPreferOptionalChain = [] | [{
|
|
|
12486
12488
|
requireNullish?: boolean;
|
|
12487
12489
|
}]; // ----- @typescript-eslint/prefer-promise-reject-errors -----
|
|
12488
12490
|
type TypescriptEslintPreferPromiseRejectErrors = [] | [{
|
|
12491
|
+
allow?: (string | {
|
|
12492
|
+
from: "file";
|
|
12493
|
+
name: string | [string, ...string[]];
|
|
12494
|
+
path?: string;
|
|
12495
|
+
} | {
|
|
12496
|
+
from: "lib";
|
|
12497
|
+
name: string | [string, ...string[]];
|
|
12498
|
+
} | {
|
|
12499
|
+
from: "package";
|
|
12500
|
+
name: string | [string, ...string[]];
|
|
12501
|
+
package: string;
|
|
12502
|
+
})[];
|
|
12489
12503
|
allowEmptyReject?: boolean;
|
|
12490
12504
|
allowThrowingAny?: boolean;
|
|
12491
12505
|
allowThrowingUnknown?: boolean;
|
|
@@ -14382,37 +14396,7 @@ type YamlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
|
|
|
14382
14396
|
}];
|
|
14383
14397
|
//#endregion
|
|
14384
14398
|
//#region src/generated/rule-options.d.ts
|
|
14385
|
-
type RuleOptionsIntersection = BuiltinsRuleOptions | AntfuRuleOptions | CommandRuleOptions | DeMorganRuleOptions | EslintCommentsRuleOptions | IgnoresRuleOptions | ImportsRuleOptions | JavascriptRuleOptions$1 | JsdocRuleOptions | JsoncRuleOptions | MarkdownRuleOptions | NRuleOptions | NoOnlyTestsRuleOptions | PerfectionistRuleOptions | PnpmRuleOptions | PrettierRuleOptions | ReactRuleOptions | ReactHooksRuleOptions | SortPackageJsonRuleOptions | SortTsconfigRuleOptions | StylisticRuleOptions | TomlRuleOptions | TsdocRuleOptions | TypescriptRuleOptions | UnicornRuleOptions | VitestRuleOptions | YmlRuleOptions;
|
|
14386
14399
|
type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & EslintCommentsRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactRuleOptions & ReactHooksRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TsdocRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
|
|
14387
|
-
type RuleOptionsMap = {
|
|
14388
|
-
BuiltinsRuleOptions: BuiltinsRuleOptions;
|
|
14389
|
-
AntfuRuleOptions: AntfuRuleOptions;
|
|
14390
|
-
CommandRuleOptions: CommandRuleOptions;
|
|
14391
|
-
DeMorganRuleOptions: DeMorganRuleOptions;
|
|
14392
|
-
EslintCommentsRuleOptions: EslintCommentsRuleOptions;
|
|
14393
|
-
IgnoresRuleOptions: IgnoresRuleOptions;
|
|
14394
|
-
ImportsRuleOptions: ImportsRuleOptions;
|
|
14395
|
-
JavascriptRuleOptions: JavascriptRuleOptions$1;
|
|
14396
|
-
JsdocRuleOptions: JsdocRuleOptions;
|
|
14397
|
-
JsoncRuleOptions: JsoncRuleOptions;
|
|
14398
|
-
MarkdownRuleOptions: MarkdownRuleOptions;
|
|
14399
|
-
NRuleOptions: NRuleOptions;
|
|
14400
|
-
NoOnlyTestsRuleOptions: NoOnlyTestsRuleOptions;
|
|
14401
|
-
PerfectionistRuleOptions: PerfectionistRuleOptions;
|
|
14402
|
-
PnpmRuleOptions: PnpmRuleOptions;
|
|
14403
|
-
PrettierRuleOptions: PrettierRuleOptions;
|
|
14404
|
-
ReactRuleOptions: ReactRuleOptions;
|
|
14405
|
-
ReactHooksRuleOptions: ReactHooksRuleOptions;
|
|
14406
|
-
SortPackageJsonRuleOptions: SortPackageJsonRuleOptions;
|
|
14407
|
-
SortTsconfigRuleOptions: SortTsconfigRuleOptions;
|
|
14408
|
-
StylisticRuleOptions: StylisticRuleOptions;
|
|
14409
|
-
TomlRuleOptions: TomlRuleOptions;
|
|
14410
|
-
TsdocRuleOptions: TsdocRuleOptions;
|
|
14411
|
-
TypescriptRuleOptions: TypescriptRuleOptions;
|
|
14412
|
-
UnicornRuleOptions: UnicornRuleOptions;
|
|
14413
|
-
VitestRuleOptions: VitestRuleOptions;
|
|
14414
|
-
YmlRuleOptions: YmlRuleOptions;
|
|
14415
|
-
};
|
|
14416
14400
|
//#endregion
|
|
14417
14401
|
//#region src/types.d.ts
|
|
14418
14402
|
type RulesRecord = Linter.RulesRecord & RuleOptionsUnion;
|
|
@@ -14612,6 +14596,21 @@ type OptionsConfig = {
|
|
|
14612
14596
|
* @default true
|
|
14613
14597
|
*/
|
|
14614
14598
|
gitignore?: boolean | FlatGitignoreOptions;
|
|
14599
|
+
/**
|
|
14600
|
+
* Enable sorting of package.json files.
|
|
14601
|
+
* @default true
|
|
14602
|
+
*/
|
|
14603
|
+
sortPackageJson?: boolean;
|
|
14604
|
+
/**
|
|
14605
|
+
* Enable sorting of tsconfig.json files.
|
|
14606
|
+
* @default true
|
|
14607
|
+
*/
|
|
14608
|
+
sortTsconfig?: boolean;
|
|
14609
|
+
/**
|
|
14610
|
+
* Enable import/export sorting via perfectionist.
|
|
14611
|
+
* @default true
|
|
14612
|
+
*/
|
|
14613
|
+
sortImports?: boolean;
|
|
14615
14614
|
tsPrefix?: string;
|
|
14616
14615
|
/**
|
|
14617
14616
|
* Glob patterns for ADDITIONAL tsconfig files to lint (aka sort)
|
|
@@ -14685,7 +14684,6 @@ type OptionsConfig = {
|
|
|
14685
14684
|
type RenamePefix<T extends Record<string, unknown>, FromPref extends string, ToPref extends string> = { [K in keyof T as K extends `${FromPref}${infer Rest}` ? `${ToPref}${Rest}` : K]: T[K] };
|
|
14686
14685
|
//#endregion
|
|
14687
14686
|
//#region src/const.d.ts
|
|
14688
|
-
declare const DEBUG: boolean;
|
|
14689
14687
|
declare const SLOW_RULES: RuleName[];
|
|
14690
14688
|
//#endregion
|
|
14691
14689
|
//#region src/define-config.d.ts
|
|
@@ -14700,7 +14698,7 @@ declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs:
|
|
|
14700
14698
|
type DefineConfig = typeof defineConfig;
|
|
14701
14699
|
//#endregion
|
|
14702
14700
|
//#region src/generated/version.d.ts
|
|
14703
|
-
declare const VERSION = "0.
|
|
14701
|
+
declare const VERSION = "0.6.0";
|
|
14704
14702
|
declare namespace globs_d_exports {
|
|
14705
14703
|
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_TS_SRC_EXT, GLOB_YAML };
|
|
14706
14704
|
}
|
|
@@ -15072,35 +15070,20 @@ declare function importPluginStylistic(): Promise<{
|
|
|
15072
15070
|
//#endregion
|
|
15073
15071
|
//#region src/presets.d.ts
|
|
15074
15072
|
declare const jsseReact: DefineConfig;
|
|
15075
|
-
/** Ignore common files and include javascript support */
|
|
15076
|
-
declare const presetJavascript: () => Promise<Config[]>;
|
|
15077
|
-
/** Includes markdown, yaml + `presetJsonc` support */
|
|
15078
|
-
declare const presetLangsExtensions: () => Promise<Config[]>;
|
|
15079
|
-
/** Includes `presetJavaScript` and typescript support */
|
|
15080
|
-
declare const presetBasic: () => Promise<Config[]>;
|
|
15081
|
-
/**
|
|
15082
|
-
* Includes
|
|
15083
|
-
* - `presetBasic` (JS+TS) support
|
|
15084
|
-
* - `presetLangsExtensions` (markdown, yaml, jsonc) support
|
|
15085
|
-
* - Vue support
|
|
15086
|
-
* - UnoCSS support (`uno.config.ts` is required)
|
|
15087
|
-
* - Prettier support
|
|
15088
|
-
*/
|
|
15089
|
-
declare const presetAll: () => Promise<Config[]>;
|
|
15090
15073
|
//#endregion
|
|
15091
15074
|
//#region src/utils.d.ts
|
|
15092
|
-
/**
|
|
15093
|
-
* Combine array and non-array configs into a single array.
|
|
15094
|
-
* @param configs configs to combine
|
|
15095
|
-
* @returns combined configs as an array
|
|
15096
|
-
*/
|
|
15097
|
-
declare function combine(...configs: Awaitable<Config | Config[]>[]): Promise<Config[]>;
|
|
15098
15075
|
/**
|
|
15099
15076
|
* Combine array and non-array configs into a single array.
|
|
15100
15077
|
* @param configs configs to combine and flatten
|
|
15101
15078
|
* @returns combined configs as a flattened array
|
|
15102
15079
|
*/
|
|
15103
15080
|
declare function combineAsync<T>(...configs: Awaitable<T | T[]>[]): Promise<T[]>;
|
|
15081
|
+
/**
|
|
15082
|
+
* Combine array and non-array configs into a single array.
|
|
15083
|
+
* @param configs configs to combine
|
|
15084
|
+
* @returns combined configs as an array
|
|
15085
|
+
*/
|
|
15086
|
+
declare function combine(...configs: Awaitable<Config | Config[]>[]): Promise<Config[]>;
|
|
15104
15087
|
declare function renameRules<TRule = unknown>(rules: Record<string, TRule>, from: string, to: string): Record<string, TRule>;
|
|
15105
15088
|
declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
|
|
15106
15089
|
default: infer U;
|