@isentinel/eslint-config 6.0.0-beta.5 → 6.0.0-beta.7
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 +43 -0
- package/dist/index.d.mts +384 -237
- package/dist/index.mjs +3716 -2205
- package/dist/oxlint.d.mts +27424 -0
- package/dist/oxlint.mjs +3773 -0
- package/package.json +31 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
1
2
|
import { Options, Options as PrettierOptions } from "prettier";
|
|
2
3
|
import { StylisticCustomizeOptions } from "@stylistic/eslint-plugin";
|
|
3
|
-
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
4
4
|
import { ParserOptions } from "@typescript-eslint/parser";
|
|
5
5
|
import { ESLintReactSettings } from "@eslint-react/shared";
|
|
6
|
-
import { Linter } from "eslint";
|
|
7
6
|
import { SetRequired } from "type-fest";
|
|
7
|
+
import { Linter } from "eslint";
|
|
8
8
|
import { FormatConfig, JsdocConfig } from "oxfmt";
|
|
9
9
|
|
|
10
10
|
//#region node_modules/.pnpm/eslint-config-flat-gitignore@2.3.0_patch_hash=c0af6384f070a0837fdab77e0920cd119c0824908_2df304f64b10b2174adecad1e2e573f4/node_modules/eslint-config-flat-gitignore/dist/index.d.mts
|
|
@@ -60,32 +60,6 @@ interface FlatGitignoreOptions {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
//#endregion
|
|
63
|
-
//#region src/utils.d.ts
|
|
64
|
-
type ExtractRuleOptions<T> = T extends Linter.RuleEntry<infer U> ? U : never;
|
|
65
|
-
declare function isInGitHooksOrLintStaged(): boolean;
|
|
66
|
-
declare function isInAgentSession(): boolean;
|
|
67
|
-
declare function isInEditorEnvironment(): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Oxfmt's generated types widen `jsdoc.commentLineStrategy` and
|
|
70
|
-
* `jsdoc.lineWrappingStyle` to `string`, but its JSON schema (and therefore the
|
|
71
|
-
* generated `oxfmt/oxfmt` rule type) keep them as literal enums. Re-narrow them
|
|
72
|
-
* so option objects remain assignable to the rule.
|
|
73
|
-
*/
|
|
74
|
-
type OxfmtOptions = Omit<FormatConfig, "jsdoc"> & {
|
|
75
|
-
jsdoc?: boolean | (Omit<JsdocConfig, "commentLineStrategy" | "lineWrappingStyle"> & {
|
|
76
|
-
commentLineStrategy?: "keep" | "multiline" | "singleLine";
|
|
77
|
-
lineWrappingStyle?: "balance" | "greedy";
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region src/configs/oxfmt.d.ts
|
|
82
|
-
declare function oxfmt(options?: OptionsComponentExtensions & OptionsFiles & OptionsOverrides & {
|
|
83
|
-
formatters?: OptionsFormatters | true;
|
|
84
|
-
oxfmtConfigOptions?: OxfmtOptions;
|
|
85
|
-
oxfmtOptions?: OxfmtOptions;
|
|
86
|
-
prettierOptions?: Options;
|
|
87
|
-
}): Promise<Array<TypedFlatConfigItem>>;
|
|
88
|
-
//#endregion
|
|
89
63
|
//#region src/typegen.d.ts
|
|
90
64
|
interface RuleOptions {
|
|
91
65
|
/**
|
|
@@ -1017,47 +991,52 @@ interface RuleOptions {
|
|
|
1017
991
|
'eslint-plugin/unique-test-case-names'?: Linter.RuleEntry<[]>;
|
|
1018
992
|
/**
|
|
1019
993
|
* Disallow shorthand boolean JSX attributes
|
|
1020
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.
|
|
994
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.10/src/rules/jsx-shorthand-boolean/documentation.md
|
|
1021
995
|
*/
|
|
1022
996
|
'flawless/jsx-shorthand-boolean'?: Linter.RuleEntry<[]>;
|
|
1023
997
|
/**
|
|
1024
998
|
* Enforce a consistent fragment form: the shorthand `<>...</>` or a named fragment
|
|
1025
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.
|
|
999
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.10/src/rules/jsx-shorthand-fragment/documentation.md
|
|
1026
1000
|
*/
|
|
1027
1001
|
'flawless/jsx-shorthand-fragment'?: Linter.RuleEntry<FlawlessJsxShorthandFragment>;
|
|
1028
1002
|
/**
|
|
1029
1003
|
* Enforce naming conventions for everything across a codebase
|
|
1030
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.
|
|
1004
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.10/src/rules/naming-convention/documentation.md
|
|
1031
1005
|
*/
|
|
1032
1006
|
'flawless/naming-convention'?: Linter.RuleEntry<FlawlessNamingConvention>;
|
|
1033
1007
|
/**
|
|
1034
1008
|
* Disallow unnecessary usage of 'useCallback'
|
|
1035
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.
|
|
1009
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.10/src/rules/no-unnecessary-use-callback/documentation.md
|
|
1036
1010
|
*/
|
|
1037
1011
|
'flawless/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
1038
1012
|
/**
|
|
1039
1013
|
* Disallow unnecessary usage of 'useMemo'
|
|
1040
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.
|
|
1014
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.10/src/rules/no-unnecessary-use-memo/documentation.md
|
|
1041
1015
|
*/
|
|
1042
1016
|
'flawless/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
1043
1017
|
/**
|
|
1044
1018
|
* Enforce destructuring assignment for component props
|
|
1045
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.
|
|
1019
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.10/src/rules/prefer-destructuring-assignment/documentation.md
|
|
1046
1020
|
*/
|
|
1047
1021
|
'flawless/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
1022
|
+
/**
|
|
1023
|
+
* Enforce destructuring parameters in the function signature
|
|
1024
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.10/src/rules/prefer-parameter-destructuring/documentation.md
|
|
1025
|
+
*/
|
|
1026
|
+
'flawless/prefer-parameter-destructuring'?: Linter.RuleEntry<FlawlessPreferParameterDestructuring>;
|
|
1048
1027
|
/**
|
|
1049
1028
|
* Disallow impure calls such as `math.random` or `os.clock` during render
|
|
1050
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.
|
|
1029
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.10/src/rules/purity/documentation.md
|
|
1051
1030
|
*/
|
|
1052
1031
|
'flawless/purity'?: Linter.RuleEntry<FlawlessPurity>;
|
|
1053
1032
|
/**
|
|
1054
1033
|
* Enforce a configured sort order for TOML keys and tables
|
|
1055
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.
|
|
1034
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.10/src/rules/toml-sort-keys/documentation.md
|
|
1056
1035
|
*/
|
|
1057
1036
|
'flawless/toml-sort-keys'?: Linter.RuleEntry<FlawlessTomlSortKeys>;
|
|
1058
1037
|
/**
|
|
1059
1038
|
* Enforce blank lines around top-level YAML block collection keys
|
|
1060
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.
|
|
1039
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v0.1.10/src/rules/yaml-block-key-blank-lines/documentation.md
|
|
1061
1040
|
*/
|
|
1062
1041
|
'flawless/yaml-block-key-blank-lines'?: Linter.RuleEntry<[]>;
|
|
1063
1042
|
/**
|
|
@@ -10963,7 +10942,10 @@ type FlawlessNamingConvention = ({
|
|
|
10963
10942
|
interface _FlawlessNamingConvention_MatchRegexConfig {
|
|
10964
10943
|
match: boolean;
|
|
10965
10944
|
regex: string;
|
|
10966
|
-
} // ----- flawless/
|
|
10945
|
+
} // ----- flawless/prefer-parameter-destructuring -----
|
|
10946
|
+
type FlawlessPreferParameterDestructuring = [] | [{
|
|
10947
|
+
allowSideEffectReordering?: boolean;
|
|
10948
|
+
}]; // ----- flawless/purity -----
|
|
10967
10949
|
type FlawlessPurity = [] | [{
|
|
10968
10950
|
additionalFunctions?: string[];
|
|
10969
10951
|
ignore?: string[];
|
|
@@ -19225,7 +19207,249 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
19225
19207
|
exceptRange?: boolean;
|
|
19226
19208
|
onlyEquality?: boolean;
|
|
19227
19209
|
}]; // Names of all the configs
|
|
19228
|
-
type ConfigNames = 'isentinel/cease-nonsense/setup' | 'isentinel/cease-nonsense' | 'isentinel/typescript/rules-type-aware' | 'isentinel/eslint/comments' | 'isentinel/eslint/comments/src' | 'isentinel/e18e/rules' | 'isentinel/eslint-plugin/setup' | 'isentinel/eslint-plugin/rules' | 'isentinel/flawless/setup' | 'isentinel/flawless/
|
|
19210
|
+
type ConfigNames = 'isentinel/cease-nonsense/setup' | 'isentinel/cease-nonsense' | 'isentinel/typescript/rules-type-aware' | 'isentinel/eslint/comments' | 'isentinel/eslint/comments/src' | 'isentinel/e18e/rules' | 'isentinel/eslint-plugin/setup' | 'isentinel/eslint-plugin/rules' | 'isentinel/flawless/setup' | 'isentinel/flawless/rules' | 'isentinel/gitignore' | 'isentinel/ignores' | 'isentinel/imports/rules' | 'isentinel/imports/game' | 'isentinel/javascript/setup' | 'isentinel/javascript/rules' | 'isentinel/jsdoc/setup' | 'isentinel/jsdoc' | 'isentinel/jsonc/setup' | 'isentinel/jsonc/rules' | 'isentinel/markdown/setup' | 'isentinel/markdown/processor' | 'isentinel/markdown/parser' | 'isentinel/markdown/disables' | 'isentinel/naming/setup' | 'isentinel/naming/ts/rules-type-aware' | 'isentinel/naming/tsx/rules-type-aware' | 'isentinel/node/rules' | 'isentinel/oxfmt/setup' | 'isentinel/oxfmt/javascript' | 'isentinel/oxfmt/typescript' | 'isentinel/oxfmt/css' | 'isentinel/oxfmt/scss' | 'isentinel/oxfmt/less' | 'isentinel/oxfmt/html' | 'isentinel/oxfmt/markdown' | 'isentinel/oxfmt/graphql' | 'isentinel/oxfmt/json' | 'isentinel/oxfmt/yaml' | 'isentinel/package-json/setup' | 'isentinel/package-json' | 'isentinel/package-json/root' | 'isentinel/perfectionist/setup' | 'isentinel/perfectionist' | 'isentinel/perfectionist/jsx' | 'isentinel/pnpm/setup' | 'isentinel/pnpm/package-json' | 'isentinel/pnpm/pnpm-workspace-yaml' | 'isentinel/promise' | 'isentinel/react/setup' | 'isentinel/react/setup/naming' | 'isentinel/react/rules' | 'isentinel/react/type-aware-rules' | 'isentinel/roblox/setup' | 'isentinel/roblox/parser' | 'isentinel/roblox/type-aware-parser' | 'isentinel/roblox' | 'isentinel/roblox/rules-type-aware' | 'isentinel/roblox/format-lua/setup' | 'isentinel/roblox/format-lua' | 'isentinel/sonarjs' | 'isentinel/spelling/setup' | 'isentinel/spelling' | 'isentinel/stylistic/setup' | 'isentinel/stylistic' | 'isentinel/stylistic/ts' | 'isentinel/stylistic/js' | 'isentinel/stylistic/markdown-code' | 'isentinel/test/jest/setup' | 'isentinel/test/jest/rules' | 'isentinel/test/vitest/setup' | 'isentinel/test/vitest/rules' | 'isentinel/toml/setup' | 'isentinel/toml/rules' | 'isentinel/typescript/setup' | 'isentinel/typescript/parser' | 'isentinel/typescript/type-aware-parser' | 'isentinel/typescript/rules' | 'isentinel/typescript/rules-type-aware' | 'isentinel/typescript/erasable-syntax-only' | 'isentinel/unicorn/setup' | 'isentinel/unicorn/rules' | 'isentinel/unicorn/root' | 'isentinel/yaml/setup' | 'isentinel/yaml/rules';
|
|
19211
|
+
//#endregion
|
|
19212
|
+
//#region src/eslint/configs/cease-nonsense.d.ts
|
|
19213
|
+
declare function ceaseNonsense(options?: OptionsComponentExtensions & OptionsFiles & OptionsIsInEditor & OptionsOverridesTypeAware & OptionsStylistic & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes): Promise<Array<TypedFlatConfigItem>>;
|
|
19214
|
+
//#endregion
|
|
19215
|
+
//#region src/eslint/configs/comments.d.ts
|
|
19216
|
+
declare function comments({
|
|
19217
|
+
prettierOptions,
|
|
19218
|
+
stylistic
|
|
19219
|
+
}?: OptionsFormatters & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19220
|
+
//#endregion
|
|
19221
|
+
//#region src/eslint/configs/disables.d.ts
|
|
19222
|
+
declare function disables({
|
|
19223
|
+
root
|
|
19224
|
+
}: {
|
|
19225
|
+
root: Array<string>;
|
|
19226
|
+
}): Promise<Array<TypedFlatConfigItem>>;
|
|
19227
|
+
//#endregion
|
|
19228
|
+
//#region src/eslint/configs/e18e.d.ts
|
|
19229
|
+
declare function e18e({
|
|
19230
|
+
isInEditor,
|
|
19231
|
+
modernization,
|
|
19232
|
+
type,
|
|
19233
|
+
moduleReplacements,
|
|
19234
|
+
overrides,
|
|
19235
|
+
performanceImprovements
|
|
19236
|
+
}?: OptionsE18e & OptionsIsInEditor & OptionsProjectType): Promise<Array<TypedFlatConfigItem>>;
|
|
19237
|
+
//#endregion
|
|
19238
|
+
//#region src/eslint/configs/eslint-plugin.d.ts
|
|
19239
|
+
declare function eslintPlugin({
|
|
19240
|
+
files,
|
|
19241
|
+
overrides
|
|
19242
|
+
}?: OptionsFiles & OptionsOverrides): Promise<Array<TypedFlatConfigItem>>;
|
|
19243
|
+
//#endregion
|
|
19244
|
+
//#region src/eslint/configs/flawless.d.ts
|
|
19245
|
+
declare function flawless({
|
|
19246
|
+
stylistic
|
|
19247
|
+
}?: OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19248
|
+
//#endregion
|
|
19249
|
+
//#region src/eslint/configs/gitignore.d.ts
|
|
19250
|
+
interface GitignoreOptions {
|
|
19251
|
+
config?: boolean | FlatGitignoreOptions;
|
|
19252
|
+
explicit?: boolean;
|
|
19253
|
+
}
|
|
19254
|
+
declare function gitignore({
|
|
19255
|
+
config,
|
|
19256
|
+
explicit
|
|
19257
|
+
}?: GitignoreOptions): Promise<Array<TypedFlatConfigItem>>;
|
|
19258
|
+
//#endregion
|
|
19259
|
+
//#region src/eslint/configs/ignores.d.ts
|
|
19260
|
+
declare function ignores$1(userIgnores?: ((originals: Array<string>) => Array<string>) | Array<string>): Promise<Array<TypedFlatConfigItem>>;
|
|
19261
|
+
//#endregion
|
|
19262
|
+
//#region src/eslint/configs/imports.d.ts
|
|
19263
|
+
declare function imports({
|
|
19264
|
+
stylistic,
|
|
19265
|
+
type
|
|
19266
|
+
}?: OptionsProjectType & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19267
|
+
//#endregion
|
|
19268
|
+
//#region src/eslint/configs/javascript.d.ts
|
|
19269
|
+
declare function javascript({
|
|
19270
|
+
isInEditor,
|
|
19271
|
+
overrides,
|
|
19272
|
+
roblox,
|
|
19273
|
+
stylistic
|
|
19274
|
+
}?: OptionsFiles & OptionsHasRoblox & OptionsIsInEditor & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19275
|
+
//#endregion
|
|
19276
|
+
//#region src/eslint/configs/jsdoc.d.ts
|
|
19277
|
+
declare function jsdoc({
|
|
19278
|
+
full,
|
|
19279
|
+
stylistic,
|
|
19280
|
+
type
|
|
19281
|
+
}?: JsdocOptions & OptionsProjectType & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19282
|
+
//#endregion
|
|
19283
|
+
//#region src/eslint/configs/jsonc.d.ts
|
|
19284
|
+
declare function jsonc({
|
|
19285
|
+
files,
|
|
19286
|
+
overrides,
|
|
19287
|
+
stylistic
|
|
19288
|
+
}?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19289
|
+
//#endregion
|
|
19290
|
+
//#region src/eslint/configs/markdown.d.ts
|
|
19291
|
+
declare function markdown({
|
|
19292
|
+
componentExts: componentExtensions,
|
|
19293
|
+
files,
|
|
19294
|
+
overrides,
|
|
19295
|
+
type
|
|
19296
|
+
}?: OptionsComponentExtensions & OptionsFiles & OptionsOverrides & OptionsProjectType): Promise<Array<TypedFlatConfigItem>>;
|
|
19297
|
+
//#endregion
|
|
19298
|
+
//#region src/eslint/configs/naming.d.ts
|
|
19299
|
+
declare function naming(options?: OptionsOverridesTypeAware & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes): Promise<Array<TypedFlatConfigItem>>;
|
|
19300
|
+
//#endregion
|
|
19301
|
+
//#region src/eslint/configs/node.d.ts
|
|
19302
|
+
declare function node(): Promise<Array<TypedFlatConfigItem>>;
|
|
19303
|
+
//#endregion
|
|
19304
|
+
//#region src/eslint/configs/oxfmt.d.ts
|
|
19305
|
+
declare function oxfmt(options?: OptionsComponentExtensions & OptionsFiles & OptionsOverrides & {
|
|
19306
|
+
formatters?: OptionsFormatters | true;
|
|
19307
|
+
oxfmtConfigOptions?: OxfmtOptions;
|
|
19308
|
+
oxfmtOptions?: OxfmtOptions;
|
|
19309
|
+
oxlint?: boolean;
|
|
19310
|
+
prettierOptions?: Options;
|
|
19311
|
+
}): Promise<Array<TypedFlatConfigItem>>;
|
|
19312
|
+
//#endregion
|
|
19313
|
+
//#region src/eslint/configs/package-json.d.ts
|
|
19314
|
+
declare function packageJson({
|
|
19315
|
+
roblox,
|
|
19316
|
+
stylistic,
|
|
19317
|
+
type
|
|
19318
|
+
}?: OptionsHasRoblox & OptionsProjectType & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19319
|
+
//#endregion
|
|
19320
|
+
//#region src/eslint/configs/perfectionist.d.ts
|
|
19321
|
+
/**
|
|
19322
|
+
* Perfectionist plugin for props and items sorting.
|
|
19323
|
+
*
|
|
19324
|
+
* @param config - An optional configuration object for the plugin.
|
|
19325
|
+
* @returns The configuration.
|
|
19326
|
+
* @see https://github.com/azat-io/eslint-plugin-perfectionist
|
|
19327
|
+
*/
|
|
19328
|
+
declare function perfectionist(config?: OptionsProjectType & PerfectionistConfig): Promise<Array<TypedFlatConfigItem>>;
|
|
19329
|
+
//#endregion
|
|
19330
|
+
//#region src/eslint/configs/pnpm.d.ts
|
|
19331
|
+
declare function pnpm(options: OptionsPnpm & Required<OptionsIsInEditor>): Promise<Array<TypedFlatConfigItem>>;
|
|
19332
|
+
//#endregion
|
|
19333
|
+
//#region src/eslint/configs/promise.d.ts
|
|
19334
|
+
declare function promise(): Promise<Array<TypedFlatConfigItem>>;
|
|
19335
|
+
//#endregion
|
|
19336
|
+
//#region src/eslint/configs/react.d.ts
|
|
19337
|
+
declare function react(options?: OptionsComponentExtensions & OptionsFiles & OptionsStylistic & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & ReactConfig): Promise<Array<TypedFlatConfigItem>>;
|
|
19338
|
+
//#endregion
|
|
19339
|
+
//#region src/eslint/configs/roblox.d.ts
|
|
19340
|
+
declare function roblox$1(options?: OptionsComponentExtensions & OptionsFilesTypeAware & OptionsOverridesTypeAware & OptionsStylistic & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes, formatLua?: boolean): Promise<Array<TypedFlatConfigItem>>;
|
|
19341
|
+
//#endregion
|
|
19342
|
+
//#region src/eslint/configs/sonarjs.d.ts
|
|
19343
|
+
declare function sonarjs({
|
|
19344
|
+
isInEditor
|
|
19345
|
+
}: Required<OptionsIsInEditor>): Promise<Array<TypedFlatConfigItem>>;
|
|
19346
|
+
//#endregion
|
|
19347
|
+
//#region src/eslint/configs/sort.d.ts
|
|
19348
|
+
/**
|
|
19349
|
+
* Sort GitHub Actions workflow files.
|
|
19350
|
+
*
|
|
19351
|
+
* Requires `yaml` config.
|
|
19352
|
+
*
|
|
19353
|
+
* @returns An array of flat configuration items.
|
|
19354
|
+
*/
|
|
19355
|
+
declare function sortGithubAction(): Array<TypedFlatConfigItem>;
|
|
19356
|
+
/**
|
|
19357
|
+
* Sort mise configuration files by category.
|
|
19358
|
+
*
|
|
19359
|
+
* Requires `toml` config (for the parser) and `eslint-plugin-flawless`.
|
|
19360
|
+
*
|
|
19361
|
+
* @returns A promise resolving to an array of flat configuration items.
|
|
19362
|
+
*/
|
|
19363
|
+
declare function sortMiseToml(): Promise<Array<TypedFlatConfigItem>>;
|
|
19364
|
+
declare function sortPnpmWorkspace(): Array<TypedFlatConfigItem>;
|
|
19365
|
+
/**
|
|
19366
|
+
* Sort Rojo .project.json files.
|
|
19367
|
+
*
|
|
19368
|
+
* Requires `jsonc` config.
|
|
19369
|
+
*
|
|
19370
|
+
* @returns An array of flat configuration items.
|
|
19371
|
+
*/
|
|
19372
|
+
declare function sortRojoProject(): Array<TypedFlatConfigItem>;
|
|
19373
|
+
/**
|
|
19374
|
+
* Sort tsconfig.json.
|
|
19375
|
+
*
|
|
19376
|
+
* Requires `jsonc` config.
|
|
19377
|
+
*
|
|
19378
|
+
* @returns An array of flat configuration items.
|
|
19379
|
+
*/
|
|
19380
|
+
declare function sortTsconfig(): Array<TypedFlatConfigItem>;
|
|
19381
|
+
/**
|
|
19382
|
+
* Sort CSpell configuration files.
|
|
19383
|
+
*
|
|
19384
|
+
* Requires `yaml` config (for the parser).
|
|
19385
|
+
*
|
|
19386
|
+
* @returns An array of flat configuration items.
|
|
19387
|
+
*/
|
|
19388
|
+
declare function sortCspell(): Array<TypedFlatConfigItem>;
|
|
19389
|
+
//#endregion
|
|
19390
|
+
//#region src/eslint/configs/spelling.d.ts
|
|
19391
|
+
declare function spelling(options?: OptionsComponentExtensions & OptionsFiles & OptionsIsInEditor & SpellCheckConfig): Promise<Array<TypedFlatConfigItem>>;
|
|
19392
|
+
//#endregion
|
|
19393
|
+
//#region src/eslint/configs/stylistic.d.ts
|
|
19394
|
+
declare const StylisticConfigDefaults: StylisticConfig;
|
|
19395
|
+
declare function stylistic$1(options?: StylisticConfig, prettierOptions?: PrettierOptions): Promise<Array<TypedFlatConfigItem>>;
|
|
19396
|
+
//#endregion
|
|
19397
|
+
//#region src/eslint/configs/test.d.ts
|
|
19398
|
+
declare function test({
|
|
19399
|
+
files,
|
|
19400
|
+
isInEditor,
|
|
19401
|
+
jest,
|
|
19402
|
+
overrides,
|
|
19403
|
+
roblox: isRoblox,
|
|
19404
|
+
stylistic,
|
|
19405
|
+
type,
|
|
19406
|
+
vitest
|
|
19407
|
+
}?: OptionsFiles & OptionsHasRoblox & OptionsIsInEditor & OptionsOverrides & OptionsProjectType & OptionsStylistic & OptionsTestFramework): Promise<Array<TypedFlatConfigItem>>;
|
|
19408
|
+
//#endregion
|
|
19409
|
+
//#region src/eslint/configs/toml.d.ts
|
|
19410
|
+
declare function toml({
|
|
19411
|
+
files,
|
|
19412
|
+
overrides,
|
|
19413
|
+
stylistic
|
|
19414
|
+
}?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19415
|
+
//#endregion
|
|
19416
|
+
//#region src/eslint/configs/typescript.d.ts
|
|
19417
|
+
declare function typescript(options?: OptionsComponentExtensions & OptionsFiles & OptionsOverridesTypeAware & OptionsStylistic & OptionsTypeScriptErasableOnly & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes): Promise<Array<TypedFlatConfigItem>>;
|
|
19418
|
+
//#endregion
|
|
19419
|
+
//#region src/eslint/configs/unicorn.d.ts
|
|
19420
|
+
declare function unicorn({
|
|
19421
|
+
nameReplacements,
|
|
19422
|
+
roblox,
|
|
19423
|
+
root: customRootGlobs,
|
|
19424
|
+
stylistic
|
|
19425
|
+
}?: OptionsHasRoblox & OptionsStylistic & OptionsUnicorn & {
|
|
19426
|
+
root?: Array<string>;
|
|
19427
|
+
}): Promise<Array<TypedFlatConfigItem>>;
|
|
19428
|
+
//#endregion
|
|
19429
|
+
//#region src/eslint/configs/yaml.d.ts
|
|
19430
|
+
declare function yaml({
|
|
19431
|
+
files,
|
|
19432
|
+
overrides,
|
|
19433
|
+
stylistic
|
|
19434
|
+
}?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19435
|
+
//#endregion
|
|
19436
|
+
//#region src/utils.d.ts
|
|
19437
|
+
type ExtractRuleOptions<T> = T extends Linter.RuleEntry<infer U> ? U : never;
|
|
19438
|
+
declare function isInGitHooksOrLintStaged(): boolean;
|
|
19439
|
+
declare function isInAgentSession(): boolean;
|
|
19440
|
+
declare function isInEditorEnvironment(): boolean;
|
|
19441
|
+
/**
|
|
19442
|
+
* Oxfmt's generated types widen `jsdoc.commentLineStrategy` and
|
|
19443
|
+
* `jsdoc.lineWrappingStyle` to `string`, but its JSON schema (and therefore the
|
|
19444
|
+
* generated `oxfmt/oxfmt` rule type) keep them as literal enums. Re-narrow them
|
|
19445
|
+
* so option objects remain assignable to the rule.
|
|
19446
|
+
*/
|
|
19447
|
+
type OxfmtOptions = Omit<FormatConfig, "jsdoc"> & {
|
|
19448
|
+
jsdoc?: boolean | (Omit<JsdocConfig, "commentLineStrategy" | "lineWrappingStyle"> & {
|
|
19449
|
+
commentLineStrategy?: "keep" | "multiline" | "singleLine";
|
|
19450
|
+
lineWrappingStyle?: "balance" | "greedy";
|
|
19451
|
+
});
|
|
19452
|
+
};
|
|
19229
19453
|
//#endregion
|
|
19230
19454
|
//#region src/types.d.ts
|
|
19231
19455
|
type Awaitable<T> = Promise<T> | T;
|
|
@@ -19267,11 +19491,6 @@ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plug
|
|
|
19267
19491
|
*/
|
|
19268
19492
|
rules?: Rules;
|
|
19269
19493
|
};
|
|
19270
|
-
/**
|
|
19271
|
-
* A TypedFlatConfigItem that requires a name property. All configs should have
|
|
19272
|
-
* a name for better debugging and tooling support.
|
|
19273
|
-
*/
|
|
19274
|
-
type NamedFlatConfigItem = SetRequired<TypedFlatConfigItem, "name">;
|
|
19275
19494
|
interface OptionsComponentExtensions {
|
|
19276
19495
|
/** Additional extensions for components. */
|
|
19277
19496
|
componentExts?: Array<string>;
|
|
@@ -19280,18 +19499,6 @@ interface OptionsFiles {
|
|
|
19280
19499
|
/** Override the `files` option to provide custom globs. */
|
|
19281
19500
|
files?: Array<Array<string> | string>;
|
|
19282
19501
|
}
|
|
19283
|
-
interface OptionsFilesTypeAware extends OptionsFiles {
|
|
19284
|
-
/**
|
|
19285
|
-
* Override the `filesTypeAware` option to provide custom globs for type
|
|
19286
|
-
* aware files.
|
|
19287
|
-
*/
|
|
19288
|
-
filesTypeAware?: Array<Array<string> | string>;
|
|
19289
|
-
/**
|
|
19290
|
-
* Override the `ignoresTypeAware` option to provide custom globs for type
|
|
19291
|
-
* aware files.
|
|
19292
|
-
*/
|
|
19293
|
-
ignoresTypeAware?: Array<string>;
|
|
19294
|
-
}
|
|
19295
19502
|
interface OptionsFormatters {
|
|
19296
19503
|
/**
|
|
19297
19504
|
* Enable formatting support for CSS, Less, Sass, and SCSS.
|
|
@@ -19340,7 +19547,7 @@ interface OptionsFormatters {
|
|
|
19340
19547
|
* Used for arrow-return-style-x and as a migration source for oxfmt
|
|
19341
19548
|
* options.
|
|
19342
19549
|
*/
|
|
19343
|
-
prettierOptions?:
|
|
19550
|
+
prettierOptions?: Options;
|
|
19344
19551
|
/**
|
|
19345
19552
|
* Enable formatting support for YAML.
|
|
19346
19553
|
*
|
|
@@ -19351,9 +19558,6 @@ interface OptionsFormatters {
|
|
|
19351
19558
|
interface OptionsOverrides extends OptionsFiles {
|
|
19352
19559
|
overrides?: TypedFlatConfigItem["rules"];
|
|
19353
19560
|
}
|
|
19354
|
-
interface OptionsOverridesTypeAware extends OptionsOverrides {
|
|
19355
|
-
overridesTypeAware?: TypedFlatConfigItem["rules"];
|
|
19356
|
-
}
|
|
19357
19561
|
interface OptionsPnpm {
|
|
19358
19562
|
/** Requires catalogs usage. */
|
|
19359
19563
|
catalogs?: boolean;
|
|
@@ -19447,6 +19651,43 @@ interface OptionsTypeScriptErasableOnly {
|
|
|
19447
19651
|
*/
|
|
19448
19652
|
erasableOnly?: boolean;
|
|
19449
19653
|
}
|
|
19654
|
+
type StylisticConfig = Pick<StylisticCustomizeOptions, "indent" | "jsx" | "quotes" | "semi"> & {
|
|
19655
|
+
arrowLength?: number;
|
|
19656
|
+
};
|
|
19657
|
+
interface OptionsHasRoblox {
|
|
19658
|
+
roblox?: boolean;
|
|
19659
|
+
}
|
|
19660
|
+
interface OptionsHasTypeScript {
|
|
19661
|
+
typescript?: boolean;
|
|
19662
|
+
}
|
|
19663
|
+
interface OptionsIsInEditor {
|
|
19664
|
+
isInEditor?: boolean;
|
|
19665
|
+
}
|
|
19666
|
+
interface OptionsStylistic {
|
|
19667
|
+
stylistic?: boolean | StylisticConfig;
|
|
19668
|
+
}
|
|
19669
|
+
//#endregion
|
|
19670
|
+
//#region src/eslint/types.d.ts
|
|
19671
|
+
interface OptionsFilesTypeAware extends OptionsFiles {
|
|
19672
|
+
/**
|
|
19673
|
+
* Override the `filesTypeAware` option to provide custom globs for type
|
|
19674
|
+
* aware files.
|
|
19675
|
+
*/
|
|
19676
|
+
filesTypeAware?: Array<Array<string> | string>;
|
|
19677
|
+
/**
|
|
19678
|
+
* Override the `ignoresTypeAware` option to provide custom globs for type
|
|
19679
|
+
* aware files.
|
|
19680
|
+
*/
|
|
19681
|
+
ignoresTypeAware?: Array<string>;
|
|
19682
|
+
}
|
|
19683
|
+
/**
|
|
19684
|
+
* A TypedFlatConfigItem that requires a name property. All configs should have
|
|
19685
|
+
* a name for better debugging and tooling support.
|
|
19686
|
+
*/
|
|
19687
|
+
type NamedFlatConfigItem = SetRequired<TypedFlatConfigItem, "name">;
|
|
19688
|
+
interface OptionsOverridesTypeAware extends OptionsOverrides {
|
|
19689
|
+
overridesTypeAware?: TypedFlatConfigItem["rules"];
|
|
19690
|
+
}
|
|
19450
19691
|
interface OptionsTypeScriptParserOptions {
|
|
19451
19692
|
/**
|
|
19452
19693
|
* Glob patterns for files that should be type aware.
|
|
@@ -19557,9 +19798,6 @@ interface SpellCheckConfig {
|
|
|
19557
19798
|
/** Defaults to `en-US`. */
|
|
19558
19799
|
language?: string;
|
|
19559
19800
|
}
|
|
19560
|
-
type StylisticConfig = Pick<StylisticCustomizeOptions, "indent" | "jsx" | "quotes" | "semi"> & {
|
|
19561
|
-
arrowLength?: number;
|
|
19562
|
-
};
|
|
19563
19801
|
interface OptionsE18e extends OptionsOverrides {
|
|
19564
19802
|
/**
|
|
19565
19803
|
* Include modernization rules.
|
|
@@ -19610,12 +19848,6 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsProjectType {
|
|
|
19610
19848
|
* @requires eslint-plugin-eslint-plugin
|
|
19611
19849
|
*/
|
|
19612
19850
|
eslintPlugin?: boolean | OptionsOverrides;
|
|
19613
|
-
/**
|
|
19614
|
-
* Enable eslint-plugin-flawless.
|
|
19615
|
-
*
|
|
19616
|
-
* @default false
|
|
19617
|
-
*/
|
|
19618
|
-
flawless?: boolean | OptionsOverridesTypeAware;
|
|
19619
19851
|
/**
|
|
19620
19852
|
* Use external formatters to format files.
|
|
19621
19853
|
*
|
|
@@ -19644,6 +19876,13 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsProjectType {
|
|
|
19644
19876
|
* @default [ ] - no additional ignores
|
|
19645
19877
|
*/
|
|
19646
19878
|
ignores?: ((originals: Array<string>) => Array<string>) | Array<string>;
|
|
19879
|
+
/**
|
|
19880
|
+
* Control behavior changes made for agent sessions, such as disabling
|
|
19881
|
+
* certain autofixes and raising the default severity.
|
|
19882
|
+
*
|
|
19883
|
+
* @default auto-detect based on the process.env
|
|
19884
|
+
*/
|
|
19885
|
+
isAgent?: boolean;
|
|
19647
19886
|
/**
|
|
19648
19887
|
* Control to disable some rules in editors.
|
|
19649
19888
|
*
|
|
@@ -19690,6 +19929,34 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsProjectType {
|
|
|
19690
19929
|
* @default false
|
|
19691
19930
|
*/
|
|
19692
19931
|
namedConfigs?: boolean;
|
|
19932
|
+
/**
|
|
19933
|
+
* Enable the opinionated `flawless/naming-convention` rules.
|
|
19934
|
+
*
|
|
19935
|
+
* @default false
|
|
19936
|
+
*/
|
|
19937
|
+
naming?: boolean | OptionsOverridesTypeAware;
|
|
19938
|
+
/**
|
|
19939
|
+
* Run ESLint alongside oxlint (hybrid mode).
|
|
19940
|
+
*
|
|
19941
|
+
* When enabled, ESLint drops every rule that oxlint covers (see the oxlint
|
|
19942
|
+
* rule mapping) and only runs the rules that stay in ESLint. Use together
|
|
19943
|
+
* with the `@isentinel/eslint-config/oxlint` factory and run `oxlint &&
|
|
19944
|
+
* eslint` (type-aware rules are executed by oxlint-tsgolint; the oxlint
|
|
19945
|
+
* factory enables `typeAware` in the generated config by default).
|
|
19946
|
+
*
|
|
19947
|
+
* Requires installing the optional peer dependencies `oxlint` and
|
|
19948
|
+
* `oxlint-tsgolint`.
|
|
19949
|
+
*
|
|
19950
|
+
* @default false
|
|
19951
|
+
*/
|
|
19952
|
+
oxlint?: boolean;
|
|
19953
|
+
/**
|
|
19954
|
+
* Warn at config-build time when a user config references a rule that oxlint
|
|
19955
|
+
* owns in hybrid mode (`oxlint: true`), where the ESLint entry has no effect.
|
|
19956
|
+
*
|
|
19957
|
+
* @default true
|
|
19958
|
+
*/
|
|
19959
|
+
oxlintWarnDeadRules?: boolean;
|
|
19693
19960
|
/** Supply custom options for eslint-plugin-perfectionist. */
|
|
19694
19961
|
perfectionist?: PerfectionistConfig;
|
|
19695
19962
|
/**
|
|
@@ -19769,6 +20036,39 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsProjectType {
|
|
|
19769
20036
|
* @default true
|
|
19770
20037
|
*/
|
|
19771
20038
|
toml?: boolean | OptionsOverrides;
|
|
20039
|
+
/**
|
|
20040
|
+
* Split the config by type-aware linting so a large project can lint in two
|
|
20041
|
+
* ESLint passes.
|
|
20042
|
+
*
|
|
20043
|
+
* - `false` — drop every rule that requires type information and the
|
|
20044
|
+
* type-aware parser setup, so no TypeScript program is built.
|
|
20045
|
+
* - `"only"` — keep only the type-aware rules (plus the parser setup they
|
|
20046
|
+
* need) and drop the non-JS/TS-language configs (JSON, YAML, TOML,
|
|
20047
|
+
* Markdown, pnpm, spell checking, formatting) entirely.
|
|
20048
|
+
*
|
|
20049
|
+
* Both passes benefit from `--cache` (use a distinct `--cache-location`
|
|
20050
|
+
* per pass) and an explicit numeric `--concurrency`: type-aware linting
|
|
20051
|
+
* parallelizes well, but each worker builds its own TypeScript program, so
|
|
20052
|
+
* prefer a fixed worker count over `auto` and mind memory.
|
|
20053
|
+
*
|
|
20054
|
+
* For every file, the effective rules of the two passes together equal the
|
|
20055
|
+
* full config exactly. Both modes disable unused-disable-directive
|
|
20056
|
+
* reporting; only the full config reports those. Custom type-aware rules
|
|
20057
|
+
* must either declare `meta.docs.requiresTypeChecking` or be enabled in a
|
|
20058
|
+
* config whose name contains `type-aware` (for example via
|
|
20059
|
+
* `overridesTypeAware`) to be sorted into the `"only"` pass.
|
|
20060
|
+
*
|
|
20061
|
+
* @default undefined - single full config
|
|
20062
|
+
*/
|
|
20063
|
+
typeAware?: "only" | boolean;
|
|
20064
|
+
/**
|
|
20065
|
+
* Additional rules to classify as type-aware for the `typeAware` split.
|
|
20066
|
+
*
|
|
20067
|
+
* Use this for custom or third-party rules that need type information but
|
|
20068
|
+
* neither declare `meta.docs.requiresTypeChecking` nor are enabled in a
|
|
20069
|
+
* config whose name contains `type-aware`.
|
|
20070
|
+
*/
|
|
20071
|
+
typeAwareRules?: Array<string>;
|
|
19772
20072
|
/**
|
|
19773
20073
|
* Enable TypeScript support.
|
|
19774
20074
|
*
|
|
@@ -19797,163 +20097,8 @@ type NamedOptionsConfig = OptionsConfig & TypedFlatConfigItem & {
|
|
|
19797
20097
|
name: string;
|
|
19798
20098
|
namedConfigs: true;
|
|
19799
20099
|
};
|
|
19800
|
-
interface OptionsHasRoblox {
|
|
19801
|
-
roblox?: boolean;
|
|
19802
|
-
}
|
|
19803
|
-
interface OptionsHasTypeScript {
|
|
19804
|
-
typescript?: boolean;
|
|
19805
|
-
}
|
|
19806
|
-
interface OptionsIsInEditor {
|
|
19807
|
-
isInEditor?: boolean;
|
|
19808
|
-
}
|
|
19809
|
-
interface OptionsStylistic {
|
|
19810
|
-
stylistic?: boolean | StylisticConfig;
|
|
19811
|
-
}
|
|
19812
|
-
//#endregion
|
|
19813
|
-
//#region src/configs/cease-nonsense.d.ts
|
|
19814
|
-
declare function ceaseNonsense(options?: OptionsComponentExtensions & OptionsFiles & OptionsIsInEditor & OptionsOverridesTypeAware & OptionsStylistic & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes): Promise<Array<TypedFlatConfigItem>>;
|
|
19815
|
-
//#endregion
|
|
19816
|
-
//#region src/configs/comments.d.ts
|
|
19817
|
-
declare function comments(options?: OptionsFormatters & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19818
|
-
//#endregion
|
|
19819
|
-
//#region src/configs/disables.d.ts
|
|
19820
|
-
declare function disables(options: {
|
|
19821
|
-
root: Array<string>;
|
|
19822
|
-
}): Promise<Array<TypedFlatConfigItem>>;
|
|
19823
|
-
//#endregion
|
|
19824
|
-
//#region src/configs/e18e.d.ts
|
|
19825
|
-
declare function e18e(options?: OptionsE18e & OptionsIsInEditor & OptionsProjectType): Promise<Array<TypedFlatConfigItem>>;
|
|
19826
|
-
//#endregion
|
|
19827
|
-
//#region src/configs/eslint-plugin.d.ts
|
|
19828
|
-
declare function eslintPlugin(options?: OptionsFiles & OptionsOverrides): Promise<Array<TypedFlatConfigItem>>;
|
|
19829
20100
|
//#endregion
|
|
19830
|
-
//#region src/
|
|
19831
|
-
declare function flawless(options?: OptionsOverridesTypeAware & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes): Promise<Array<TypedFlatConfigItem>>;
|
|
19832
|
-
//#endregion
|
|
19833
|
-
//#region src/configs/gitignore.d.ts
|
|
19834
|
-
interface GitignoreOptions {
|
|
19835
|
-
config?: boolean | FlatGitignoreOptions;
|
|
19836
|
-
explicit?: boolean;
|
|
19837
|
-
}
|
|
19838
|
-
declare function gitignore(options?: GitignoreOptions): Promise<Array<TypedFlatConfigItem>>;
|
|
19839
|
-
//#endregion
|
|
19840
|
-
//#region src/configs/ignores.d.ts
|
|
19841
|
-
declare function ignores(userIgnores?: ((originals: Array<string>) => Array<string>) | Array<string>): Promise<Array<TypedFlatConfigItem>>;
|
|
19842
|
-
//#endregion
|
|
19843
|
-
//#region src/configs/imports.d.ts
|
|
19844
|
-
declare function imports(options?: OptionsProjectType & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19845
|
-
//#endregion
|
|
19846
|
-
//#region src/configs/javascript.d.ts
|
|
19847
|
-
declare function javascript(options?: OptionsFiles & OptionsHasRoblox & OptionsIsInEditor & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19848
|
-
//#endregion
|
|
19849
|
-
//#region src/configs/jsdoc.d.ts
|
|
19850
|
-
declare function jsdoc(options?: JsdocOptions & OptionsProjectType & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19851
|
-
//#endregion
|
|
19852
|
-
//#region src/configs/jsonc.d.ts
|
|
19853
|
-
declare function jsonc(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19854
|
-
//#endregion
|
|
19855
|
-
//#region src/configs/markdown.d.ts
|
|
19856
|
-
declare function markdown(options?: OptionsComponentExtensions & OptionsFiles & OptionsOverrides & OptionsProjectType): Promise<Array<TypedFlatConfigItem>>;
|
|
19857
|
-
//#endregion
|
|
19858
|
-
//#region src/configs/node.d.ts
|
|
19859
|
-
declare function node(): Promise<Array<TypedFlatConfigItem>>;
|
|
19860
|
-
//#endregion
|
|
19861
|
-
//#region src/configs/package-json.d.ts
|
|
19862
|
-
declare function packageJson(options?: OptionsHasRoblox & OptionsProjectType & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19863
|
-
//#endregion
|
|
19864
|
-
//#region src/configs/perfectionist.d.ts
|
|
19865
|
-
/**
|
|
19866
|
-
* Perfectionist plugin for props and items sorting.
|
|
19867
|
-
*
|
|
19868
|
-
* @param config - An optional configuration object for the plugin.
|
|
19869
|
-
* @returns The configuration.
|
|
19870
|
-
* @see https://github.com/azat-io/eslint-plugin-perfectionist
|
|
19871
|
-
*/
|
|
19872
|
-
declare function perfectionist(config?: OptionsProjectType & PerfectionistConfig): Promise<Array<TypedFlatConfigItem>>;
|
|
19873
|
-
//#endregion
|
|
19874
|
-
//#region src/configs/pnpm.d.ts
|
|
19875
|
-
declare function pnpm(options: OptionsPnpm & Required<OptionsIsInEditor>): Promise<Array<TypedFlatConfigItem>>;
|
|
19876
|
-
//#endregion
|
|
19877
|
-
//#region src/configs/promise.d.ts
|
|
19878
|
-
declare function promise(): Promise<Array<TypedFlatConfigItem>>;
|
|
19879
|
-
//#endregion
|
|
19880
|
-
//#region src/configs/react.d.ts
|
|
19881
|
-
declare function react(options?: OptionsComponentExtensions & OptionsFiles & OptionsStylistic & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & ReactConfig): Promise<Array<TypedFlatConfigItem>>;
|
|
19882
|
-
//#endregion
|
|
19883
|
-
//#region src/configs/roblox.d.ts
|
|
19884
|
-
declare function roblox(options?: OptionsComponentExtensions & OptionsFilesTypeAware & OptionsOverridesTypeAware & OptionsStylistic & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes, formatLua?: boolean): Promise<Array<TypedFlatConfigItem>>;
|
|
19885
|
-
//#endregion
|
|
19886
|
-
//#region src/configs/sonarjs.d.ts
|
|
19887
|
-
declare function sonarjs(options: Required<OptionsIsInEditor>): Promise<Array<TypedFlatConfigItem>>;
|
|
19888
|
-
//#endregion
|
|
19889
|
-
//#region src/configs/sort.d.ts
|
|
19890
|
-
/**
|
|
19891
|
-
* Sort GitHub Actions workflow files.
|
|
19892
|
-
*
|
|
19893
|
-
* Requires `yaml` config.
|
|
19894
|
-
*
|
|
19895
|
-
* @returns An array of flat configuration items.
|
|
19896
|
-
*/
|
|
19897
|
-
declare function sortGithubAction(): Array<TypedFlatConfigItem>;
|
|
19898
|
-
/**
|
|
19899
|
-
* Sort mise configuration files by category.
|
|
19900
|
-
*
|
|
19901
|
-
* Requires `toml` config (for the parser) and `eslint-plugin-flawless`.
|
|
19902
|
-
*
|
|
19903
|
-
* @returns A promise resolving to an array of flat configuration items.
|
|
19904
|
-
*/
|
|
19905
|
-
declare function sortMiseToml(): Promise<Array<TypedFlatConfigItem>>;
|
|
19906
|
-
declare function sortPnpmWorkspace(): Array<TypedFlatConfigItem>;
|
|
19907
|
-
/**
|
|
19908
|
-
* Sort Rojo .project.json files.
|
|
19909
|
-
*
|
|
19910
|
-
* Requires `jsonc` config.
|
|
19911
|
-
*
|
|
19912
|
-
* @returns An array of flat configuration items.
|
|
19913
|
-
*/
|
|
19914
|
-
declare function sortRojoProject(): Array<TypedFlatConfigItem>;
|
|
19915
|
-
/**
|
|
19916
|
-
* Sort tsconfig.json.
|
|
19917
|
-
*
|
|
19918
|
-
* Requires `jsonc` config.
|
|
19919
|
-
*
|
|
19920
|
-
* @returns An array of flat configuration items.
|
|
19921
|
-
*/
|
|
19922
|
-
declare function sortTsconfig(): Array<TypedFlatConfigItem>;
|
|
19923
|
-
/**
|
|
19924
|
-
* Sort CSpell configuration files.
|
|
19925
|
-
*
|
|
19926
|
-
* Requires `yaml` config (for the parser).
|
|
19927
|
-
*
|
|
19928
|
-
* @returns An array of flat configuration items.
|
|
19929
|
-
*/
|
|
19930
|
-
declare function sortCspell(): Array<TypedFlatConfigItem>;
|
|
19931
|
-
//#endregion
|
|
19932
|
-
//#region src/configs/spelling.d.ts
|
|
19933
|
-
declare function spelling(options?: OptionsComponentExtensions & OptionsFiles & OptionsIsInEditor & SpellCheckConfig): Promise<Array<TypedFlatConfigItem>>;
|
|
19934
|
-
//#endregion
|
|
19935
|
-
//#region src/configs/stylistic.d.ts
|
|
19936
|
-
declare const StylisticConfigDefaults: StylisticConfig;
|
|
19937
|
-
declare function stylistic(options?: StylisticConfig, prettierOptions?: PrettierOptions): Promise<Array<TypedFlatConfigItem>>;
|
|
19938
|
-
//#endregion
|
|
19939
|
-
//#region src/configs/test.d.ts
|
|
19940
|
-
declare function test(options?: OptionsFiles & OptionsHasRoblox & OptionsIsInEditor & OptionsOverrides & OptionsProjectType & OptionsStylistic & OptionsTestFramework): Promise<Array<TypedFlatConfigItem>>;
|
|
19941
|
-
//#endregion
|
|
19942
|
-
//#region src/configs/toml.d.ts
|
|
19943
|
-
declare function toml(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19944
|
-
//#endregion
|
|
19945
|
-
//#region src/configs/typescript.d.ts
|
|
19946
|
-
declare function typescript(options?: OptionsComponentExtensions & OptionsFiles & OptionsOverridesTypeAware & OptionsStylistic & OptionsTypeScriptErasableOnly & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes): Promise<Array<TypedFlatConfigItem>>;
|
|
19947
|
-
//#endregion
|
|
19948
|
-
//#region src/configs/unicorn.d.ts
|
|
19949
|
-
declare function unicorn(options?: OptionsHasRoblox & OptionsStylistic & OptionsUnicorn & {
|
|
19950
|
-
root?: Array<string>;
|
|
19951
|
-
}): Promise<Array<TypedFlatConfigItem>>;
|
|
19952
|
-
//#endregion
|
|
19953
|
-
//#region src/configs/yaml.d.ts
|
|
19954
|
-
declare function yaml(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
19955
|
-
//#endregion
|
|
19956
|
-
//#region src/factory.d.ts
|
|
20101
|
+
//#region src/eslint/plugin-renaming.d.ts
|
|
19957
20102
|
declare const defaultPluginRenaming: {
|
|
19958
20103
|
"@eslint-react": string;
|
|
19959
20104
|
"@eslint-react/hooks-extra": string;
|
|
@@ -19965,6 +20110,8 @@ declare const defaultPluginRenaming: {
|
|
|
19965
20110
|
n: string;
|
|
19966
20111
|
yml: string;
|
|
19967
20112
|
};
|
|
20113
|
+
//#endregion
|
|
20114
|
+
//#region src/eslint/factory.d.ts
|
|
19968
20115
|
/**
|
|
19969
20116
|
* Generates an array of user configuration items based on the provided options
|
|
19970
20117
|
* and user configs.
|
|
@@ -19986,14 +20133,14 @@ declare function isentinel(options: NamedOptionsConfig, ...userConfigs: Array<Aw
|
|
|
19986
20133
|
//#region src/globs.d.ts
|
|
19987
20134
|
declare const GLOB_ROOT: string[];
|
|
19988
20135
|
declare const GLOB_ROOT_SRC: string[];
|
|
19989
|
-
declare const GLOB_SRC_EXT = "
|
|
19990
|
-
declare const GLOB_SRC = "
|
|
19991
|
-
declare const GLOB_LUA = "**/*.lua
|
|
19992
|
-
declare const GLOB_JS = "
|
|
19993
|
-
declare const GLOB_JSX = "
|
|
19994
|
-
declare const GLOB_TS = "
|
|
19995
|
-
declare const GLOB_TSX = "
|
|
19996
|
-
declare const GLOB_DTS = "**/*.d
|
|
20136
|
+
declare const GLOB_SRC_EXT = "{,c,m}[jt]s{,x}";
|
|
20137
|
+
declare const GLOB_SRC = "**/*.{,c,m}[jt]s{,x}";
|
|
20138
|
+
declare const GLOB_LUA = "**/*.lua{,u}";
|
|
20139
|
+
declare const GLOB_JS = "**/*.{,c,m}js";
|
|
20140
|
+
declare const GLOB_JSX = "**/*.{,c,m}jsx";
|
|
20141
|
+
declare const GLOB_TS = "**/*.{,c,m}ts";
|
|
20142
|
+
declare const GLOB_TSX = "**/*.{,c,m}tsx";
|
|
20143
|
+
declare const GLOB_DTS = "**/*.d.{,c,m}ts";
|
|
19997
20144
|
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
19998
20145
|
declare const GLOB_CSS = "**/*.css";
|
|
19999
20146
|
declare const GLOB_POSTCSS = "**/*.{p,post}css";
|
|
@@ -20002,15 +20149,15 @@ declare const GLOB_SCSS = "**/*.scss";
|
|
|
20002
20149
|
declare const GLOB_JSON = "**/*.json";
|
|
20003
20150
|
declare const GLOB_JSON5 = "**/*.json5";
|
|
20004
20151
|
declare const GLOB_JSONC = "**/*.jsonc";
|
|
20005
|
-
declare const GLOB_ALL_JSON = "**/*.json
|
|
20152
|
+
declare const GLOB_ALL_JSON = "**/*.json{,5,c}";
|
|
20006
20153
|
declare const GLOB_MARKDOWN = "**/*.md";
|
|
20007
20154
|
declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
|
|
20008
20155
|
declare const GLOB_MARKDOWN_CODE: string;
|
|
20009
20156
|
declare const GLOB_MARKDOWN_BLOCKS: string;
|
|
20010
|
-
declare const GLOB_YAML = "**/*.y
|
|
20157
|
+
declare const GLOB_YAML = "**/*.y{,a}ml";
|
|
20011
20158
|
declare const GLOB_TOML = "**/*.toml";
|
|
20012
20159
|
declare const GLOB_MISE: Array<string>;
|
|
20013
|
-
declare const GLOB_HTML = "**/*.htm
|
|
20160
|
+
declare const GLOB_HTML = "**/*.htm{,l}";
|
|
20014
20161
|
declare const GLOB_XML = "**/*.xml";
|
|
20015
20162
|
declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
|
|
20016
20163
|
declare const GLOB_TESTS: Array<string>;
|
|
@@ -20018,4 +20165,4 @@ declare const GLOB_BUILD_TOOLS: Array<string>;
|
|
|
20018
20165
|
declare const GLOB_ALL_SRC: string[];
|
|
20019
20166
|
declare const GLOB_EXCLUDE: string[];
|
|
20020
20167
|
//#endregion
|
|
20021
|
-
export { Awaitable, type ConfigNames, type FlatConfigComposer, GLOB_ALL_JSON, GLOB_ALL_SRC, GLOB_BUILD_TOOLS, GLOB_CSS, GLOB_DTS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LUA, GLOB_MARKDOWN, GLOB_MARKDOWN_BLOCKS, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MISE, GLOB_POSTCSS, GLOB_ROOT, GLOB_ROOT_SRC, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_XML, GLOB_YAML, GitignoreOptions, JsdocOptions, NamedFlatConfigItem, NamedOptionsConfig, OptionsComponentExtensions, OptionsConfig, OptionsE18e, OptionsFiles, OptionsFilesTypeAware, OptionsFormatters, OptionsHasRoblox, OptionsHasTypeScript, OptionsIsInEditor, OptionsJest, OptionsOverrides, OptionsOverridesTypeAware, OptionsPnpm, OptionsProjectType, OptionsStylistic, OptionsTestFramework, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsVitest, type OxfmtOptions, PerfectionistConfig, type PrettierOptions, ReactConfig, Rules, SpellCheckConfig, StylisticConfig, StylisticConfigDefaults, TypedFlatConfigItem, ceaseNonsense, comments, isentinel as default, isentinel, defaultPluginRenaming, disables, e18e, eslintPlugin, flawless, gitignore, ignores, imports, isInAgentSession, isInEditorEnvironment, isInGitHooksOrLintStaged, javascript, jsdoc, jsonc, markdown, node, oxfmt, packageJson, perfectionist, pnpm, promise, react, roblox, sonarjs, sortCspell, sortGithubAction, sortMiseToml, sortPnpmWorkspace, sortRojoProject, sortTsconfig, spelling, stylistic, test, toml, typescript, unicorn, yaml };
|
|
20168
|
+
export { Awaitable, type ConfigNames, type FlatConfigComposer, GLOB_ALL_JSON, GLOB_ALL_SRC, GLOB_BUILD_TOOLS, GLOB_CSS, GLOB_DTS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LUA, GLOB_MARKDOWN, GLOB_MARKDOWN_BLOCKS, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MISE, GLOB_POSTCSS, GLOB_ROOT, GLOB_ROOT_SRC, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_XML, GLOB_YAML, GitignoreOptions, JsdocOptions, NamedFlatConfigItem, NamedOptionsConfig, OptionsComponentExtensions, OptionsConfig, OptionsE18e, OptionsFiles, OptionsFilesTypeAware, OptionsFormatters, OptionsHasRoblox, OptionsHasTypeScript, OptionsIsInEditor, OptionsJest, OptionsOverrides, OptionsOverridesTypeAware, OptionsPnpm, OptionsProjectType, OptionsStylistic, OptionsTestFramework, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsVitest, type OxfmtOptions, PerfectionistConfig, type PrettierOptions, ReactConfig, Rules, SpellCheckConfig, StylisticConfig, StylisticConfigDefaults, TypedFlatConfigItem, ceaseNonsense, comments, isentinel as default, isentinel, defaultPluginRenaming, disables, e18e, eslintPlugin, flawless, gitignore, ignores$1 as ignores, imports, isInAgentSession, isInEditorEnvironment, isInGitHooksOrLintStaged, javascript, jsdoc, jsonc, markdown, naming, node, oxfmt, packageJson, perfectionist, pnpm, promise, react, roblox$1 as roblox, sonarjs, sortCspell, sortGithubAction, sortMiseToml, sortPnpmWorkspace, sortRojoProject, sortTsconfig, spelling, stylistic$1 as stylistic, test, toml, typescript, unicorn, yaml };
|