@isentinel/eslint-config 6.0.0-beta.41 → 6.0.0-beta.42
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/cli.mjs +1 -1
- package/dist/index.d.mts +61 -22
- package/dist/index.mjs +8 -0
- package/dist/lint-cli.mjs +1 -1
- package/dist/oxlint.d.mts +104 -33
- package/dist/oxlint.mjs +8 -0
- package/package.json +9 -9
package/dist/cli.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import path from "node:path";
|
|
|
9
9
|
import { existsSync, readFileSync } from "fs";
|
|
10
10
|
import { execSync } from "node:child_process";
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "6.0.0-beta.
|
|
12
|
+
var version = "6.0.0-beta.42";
|
|
13
13
|
var package_default = {
|
|
14
14
|
name: "@isentinel/eslint-config",
|
|
15
15
|
version,
|
package/dist/index.d.mts
CHANGED
|
@@ -7170,112 +7170,112 @@ interface RuleOptions {
|
|
|
7170
7170
|
'eslint-plugin/unique-test-case-names'?: Linter.RuleEntry<[]>;
|
|
7171
7171
|
/**
|
|
7172
7172
|
* Enforce arrow function return style based on line length
|
|
7173
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7173
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/arrow-return-style/documentation.md
|
|
7174
7174
|
*/
|
|
7175
7175
|
'flawless/arrow-return-style'?: Linter.RuleEntry<FlawlessArrowReturnStyle>;
|
|
7176
7176
|
/**
|
|
7177
7177
|
* Disallow shorthand boolean JSX attributes
|
|
7178
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7178
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/jsx-shorthand-boolean/documentation.md
|
|
7179
7179
|
*/
|
|
7180
7180
|
'flawless/jsx-shorthand-boolean'?: Linter.RuleEntry<[]>;
|
|
7181
7181
|
/**
|
|
7182
7182
|
* Enforce a consistent fragment form: the shorthand `<>...</>` or a named fragment
|
|
7183
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7183
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/jsx-shorthand-fragment/documentation.md
|
|
7184
7184
|
*/
|
|
7185
7185
|
'flawless/jsx-shorthand-fragment'?: Linter.RuleEntry<FlawlessJsxShorthandFragment>;
|
|
7186
7186
|
/**
|
|
7187
7187
|
* Enforce a maximum number of lines of code in a function
|
|
7188
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7188
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/max-lines-per-function/documentation.md
|
|
7189
7189
|
*/
|
|
7190
7190
|
'flawless/max-lines-per-function'?: Linter.RuleEntry<FlawlessMaxLinesPerFunction>;
|
|
7191
7191
|
/**
|
|
7192
7192
|
* Enforce naming conventions for everything across a codebase
|
|
7193
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7193
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/naming-convention/documentation.md
|
|
7194
7194
|
*/
|
|
7195
7195
|
'flawless/naming-convention'?: Linter.RuleEntry<FlawlessNamingConvention>;
|
|
7196
7196
|
/**
|
|
7197
7197
|
* Disallow conditional logic in tests
|
|
7198
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7198
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-conditional-in-test/documentation.md
|
|
7199
7199
|
*/
|
|
7200
7200
|
'flawless/no-conditional-in-test'?: Linter.RuleEntry<FlawlessNoConditionalInTest>;
|
|
7201
7201
|
/**
|
|
7202
7202
|
* Disallow anonymous arrow functions as export default declarations
|
|
7203
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7203
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-export-default-arrow/documentation.md
|
|
7204
7204
|
*/
|
|
7205
7205
|
'flawless/no-export-default-arrow'?: Linter.RuleEntry<[]>;
|
|
7206
7206
|
/**
|
|
7207
7207
|
* Disallow exact equality checks involving floating-point-sensitive values
|
|
7208
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7208
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-floating-point-equality/documentation.md
|
|
7209
7209
|
*/
|
|
7210
7210
|
'flawless/no-floating-point-equality'?: Linter.RuleEntry<[]>;
|
|
7211
7211
|
/**
|
|
7212
7212
|
* Disallow tsconfig options that redundantly re-set a value already provided by an extended config
|
|
7213
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7213
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-redundant-tsconfig-options/documentation.md
|
|
7214
7214
|
*/
|
|
7215
7215
|
'flawless/no-redundant-tsconfig-options'?: Linter.RuleEntry<[]>;
|
|
7216
7216
|
/**
|
|
7217
7217
|
* Disallow mocks created once and shared between tests
|
|
7218
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7218
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-shared-mocks/documentation.md
|
|
7219
7219
|
*/
|
|
7220
7220
|
'flawless/no-shared-mocks'?: Linter.RuleEntry<[]>;
|
|
7221
7221
|
/**
|
|
7222
7222
|
* Disallow unnecessary usage of 'useCallback'
|
|
7223
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7223
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-unnecessary-use-callback/documentation.md
|
|
7224
7224
|
*/
|
|
7225
7225
|
'flawless/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
7226
7226
|
/**
|
|
7227
7227
|
* Disallow unnecessary usage of 'useMemo'
|
|
7228
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7228
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-unnecessary-use-memo/documentation.md
|
|
7229
7229
|
*/
|
|
7230
7230
|
'flawless/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
7231
7231
|
/**
|
|
7232
7232
|
* Enforce a blank line after `expect.assertions` and `expect.hasAssertions`
|
|
7233
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7233
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/padding-after-expect-assertions/documentation.md
|
|
7234
7234
|
*/
|
|
7235
7235
|
'flawless/padding-after-expect-assertions'?: Linter.RuleEntry<[]>;
|
|
7236
7236
|
/**
|
|
7237
7237
|
* Enforce destructuring assignment for component props
|
|
7238
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7238
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/prefer-destructuring-assignment/documentation.md
|
|
7239
7239
|
*/
|
|
7240
7240
|
'flawless/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
7241
7241
|
/**
|
|
7242
7242
|
* Prefer having the last statement in a test be an assertion
|
|
7243
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7243
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/prefer-ending-with-an-expect/documentation.md
|
|
7244
7244
|
*/
|
|
7245
7245
|
'flawless/prefer-ending-with-an-expect'?: Linter.RuleEntry<FlawlessPreferEndingWithAnExpect>;
|
|
7246
7246
|
/**
|
|
7247
7247
|
* Prefer `expect.assertions(<count>)` over `expect.hasAssertions()`
|
|
7248
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7248
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/prefer-expect-assertions-count/documentation.md
|
|
7249
7249
|
*/
|
|
7250
7250
|
'flawless/prefer-expect-assertions-count'?: Linter.RuleEntry<[]>;
|
|
7251
7251
|
/**
|
|
7252
7252
|
* Enforce destructuring parameters in the function signature
|
|
7253
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7253
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/prefer-parameter-destructuring/documentation.md
|
|
7254
7254
|
*/
|
|
7255
7255
|
'flawless/prefer-parameter-destructuring'?: Linter.RuleEntry<FlawlessPreferParameterDestructuring>;
|
|
7256
7256
|
/**
|
|
7257
7257
|
* Enforce that function component props are read-only
|
|
7258
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7258
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/prefer-read-only-props/documentation.md
|
|
7259
7259
|
*/
|
|
7260
7260
|
'flawless/prefer-read-only-props'?: Linter.RuleEntry<FlawlessPreferReadOnlyProps>;
|
|
7261
7261
|
/**
|
|
7262
7262
|
* Disallow impure calls such as `math.random` or `os.clock` during render
|
|
7263
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7263
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/purity/documentation.md
|
|
7264
7264
|
*/
|
|
7265
7265
|
'flawless/purity'?: Linter.RuleEntry<FlawlessPurity>;
|
|
7266
7266
|
/**
|
|
7267
7267
|
* Prefer named imports for React runtime values and the React namespace for React types
|
|
7268
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7268
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/react-namespace/documentation.md
|
|
7269
7269
|
*/
|
|
7270
7270
|
'flawless/react-namespace'?: Linter.RuleEntry<[]>;
|
|
7271
7271
|
/**
|
|
7272
7272
|
* Enforce a configured sort order for TOML keys and tables
|
|
7273
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7273
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/toml-sort-keys/documentation.md
|
|
7274
7274
|
*/
|
|
7275
7275
|
'flawless/toml-sort-keys'?: Linter.RuleEntry<FlawlessTomlSortKeys>;
|
|
7276
7276
|
/**
|
|
7277
7277
|
* Enforce blank lines around top-level YAML block collection keys
|
|
7278
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7278
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/yaml-block-key-blank-lines/documentation.md
|
|
7279
7279
|
*/
|
|
7280
7280
|
'flawless/yaml-block-key-blank-lines'?: Linter.RuleEntry<[]>;
|
|
7281
7281
|
/**
|
|
@@ -17163,6 +17163,16 @@ type _FlawlessNamingConventionFormatOptionsConfig = (_FlawlessNamingConventionPr
|
|
|
17163
17163
|
type _FlawlessNamingConventionPredefinedFormats = ("camelCase" | "strictCamelCase" | "PascalCase" | "StrictPascalCase" | "snake_case" | "UPPER_CASE");
|
|
17164
17164
|
type _FlawlessNamingConventionUnderscoreOptions = ("forbid" | "allow" | "require" | "requireDouble" | "allowDouble" | "allowSingleOrDouble");
|
|
17165
17165
|
type _FlawlessNamingConvention_PrefixSuffixConfig = string[];
|
|
17166
|
+
type _FlawlessNamingConvention_TypeArgumentReferenceMatcher = (_FlawlessNamingConventionTypeArgumentReferenceMatcher & {
|
|
17167
|
+
name?: string;
|
|
17168
|
+
from?: string;
|
|
17169
|
+
});
|
|
17170
|
+
type _FlawlessNamingConventionTypeArgumentReferenceMatcher = ({
|
|
17171
|
+
[k: string]: unknown | undefined;
|
|
17172
|
+
} | {
|
|
17173
|
+
[k: string]: unknown | undefined;
|
|
17174
|
+
});
|
|
17175
|
+
type _FlawlessNamingConvention_TypeArgumentOfConfig = _FlawlessNamingConvention_TypeArgumentReferenceMatcher[];
|
|
17166
17176
|
type _FlawlessNamingConventionTypeMatcher = (("boolean" | "string" | "number" | "function" | "array") | _FlawlessNamingConvention_TypeReferenceMatcher);
|
|
17167
17177
|
type _FlawlessNamingConvention_TypeReferenceMatcher = (_FlawlessNamingConventionTypeReferenceMatcher & {
|
|
17168
17178
|
name?: string;
|
|
@@ -17205,6 +17215,7 @@ type FlawlessNamingConvention = ({
|
|
|
17205
17215
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17206
17216
|
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace" | "constAsserted")[];
|
|
17207
17217
|
selector: ("default" | "variableLike" | "memberLike" | "typeLike" | "method" | "property" | "accessor" | "variable" | "function" | "parameter" | "objectStyleEnum" | "parameterProperty" | "classicAccessor" | "enumMember" | "objectStyleEnumMember" | "classMethod" | "objectLiteralMethod" | "typeMethod" | "classProperty" | "objectLiteralProperty" | "typeProperty" | "autoAccessor" | "class" | "interface" | "typeAlias" | "enum" | "typeParameter" | "import")[];
|
|
17218
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17208
17219
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17209
17220
|
} | {
|
|
17210
17221
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17217,6 +17228,7 @@ type FlawlessNamingConvention = ({
|
|
|
17217
17228
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17218
17229
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17219
17230
|
selector: "default";
|
|
17231
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17220
17232
|
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace" | "constAsserted")[];
|
|
17221
17233
|
} | {
|
|
17222
17234
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17229,6 +17241,7 @@ type FlawlessNamingConvention = ({
|
|
|
17229
17241
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17230
17242
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17231
17243
|
selector: "variableLike";
|
|
17244
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17232
17245
|
modifiers?: ("unused" | "async")[];
|
|
17233
17246
|
} | {
|
|
17234
17247
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17241,6 +17254,7 @@ type FlawlessNamingConvention = ({
|
|
|
17241
17254
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17242
17255
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17243
17256
|
selector: "variable";
|
|
17257
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17244
17258
|
modifiers?: ("const" | "constAsserted" | "destructured" | "exported" | "global" | "unused" | "async")[];
|
|
17245
17259
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17246
17260
|
} | {
|
|
@@ -17254,6 +17268,7 @@ type FlawlessNamingConvention = ({
|
|
|
17254
17268
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17255
17269
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17256
17270
|
selector: "function";
|
|
17271
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17257
17272
|
modifiers?: ("exported" | "global" | "unused" | "async")[];
|
|
17258
17273
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17259
17274
|
} | {
|
|
@@ -17267,6 +17282,7 @@ type FlawlessNamingConvention = ({
|
|
|
17267
17282
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17268
17283
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17269
17284
|
selector: "parameter";
|
|
17285
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17270
17286
|
modifiers?: ("destructured" | "unused")[];
|
|
17271
17287
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17272
17288
|
} | {
|
|
@@ -17280,6 +17296,7 @@ type FlawlessNamingConvention = ({
|
|
|
17280
17296
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17281
17297
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17282
17298
|
selector: "objectStyleEnum";
|
|
17299
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17283
17300
|
modifiers?: ("const" | "exported" | "global" | "unused")[];
|
|
17284
17301
|
} | {
|
|
17285
17302
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17292,6 +17309,7 @@ type FlawlessNamingConvention = ({
|
|
|
17292
17309
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17293
17310
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17294
17311
|
selector: "memberLike";
|
|
17312
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17295
17313
|
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "readonly" | "requiresQuotes" | "static" | "override" | "async")[];
|
|
17296
17314
|
} | {
|
|
17297
17315
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17304,6 +17322,7 @@ type FlawlessNamingConvention = ({
|
|
|
17304
17322
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17305
17323
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17306
17324
|
selector: "classProperty";
|
|
17325
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17307
17326
|
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "readonly" | "requiresQuotes" | "static" | "override")[];
|
|
17308
17327
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17309
17328
|
} | {
|
|
@@ -17317,6 +17336,7 @@ type FlawlessNamingConvention = ({
|
|
|
17317
17336
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17318
17337
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17319
17338
|
selector: "objectLiteralProperty";
|
|
17339
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17320
17340
|
modifiers?: ("public" | "requiresQuotes")[];
|
|
17321
17341
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17322
17342
|
} | {
|
|
@@ -17330,6 +17350,7 @@ type FlawlessNamingConvention = ({
|
|
|
17330
17350
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17331
17351
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17332
17352
|
selector: "typeProperty";
|
|
17353
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17333
17354
|
modifiers?: ("public" | "readonly" | "requiresQuotes")[];
|
|
17334
17355
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17335
17356
|
} | {
|
|
@@ -17343,6 +17364,7 @@ type FlawlessNamingConvention = ({
|
|
|
17343
17364
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17344
17365
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17345
17366
|
selector: "parameterProperty";
|
|
17367
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17346
17368
|
modifiers?: ("private" | "protected" | "public" | "readonly")[];
|
|
17347
17369
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17348
17370
|
} | {
|
|
@@ -17356,6 +17378,7 @@ type FlawlessNamingConvention = ({
|
|
|
17356
17378
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17357
17379
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17358
17380
|
selector: "property";
|
|
17381
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17359
17382
|
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "readonly" | "requiresQuotes" | "static" | "override" | "async")[];
|
|
17360
17383
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17361
17384
|
} | {
|
|
@@ -17369,6 +17392,7 @@ type FlawlessNamingConvention = ({
|
|
|
17369
17392
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17370
17393
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17371
17394
|
selector: "classMethod";
|
|
17395
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17372
17396
|
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "requiresQuotes" | "static" | "override" | "async")[];
|
|
17373
17397
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17374
17398
|
} | {
|
|
@@ -17382,6 +17406,7 @@ type FlawlessNamingConvention = ({
|
|
|
17382
17406
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17383
17407
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17384
17408
|
selector: "objectLiteralMethod";
|
|
17409
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17385
17410
|
modifiers?: ("public" | "requiresQuotes" | "async")[];
|
|
17386
17411
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17387
17412
|
} | {
|
|
@@ -17395,6 +17420,7 @@ type FlawlessNamingConvention = ({
|
|
|
17395
17420
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17396
17421
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17397
17422
|
selector: "typeMethod";
|
|
17423
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17398
17424
|
modifiers?: ("public" | "requiresQuotes")[];
|
|
17399
17425
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17400
17426
|
} | {
|
|
@@ -17408,6 +17434,7 @@ type FlawlessNamingConvention = ({
|
|
|
17408
17434
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17409
17435
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17410
17436
|
selector: "method";
|
|
17437
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17411
17438
|
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "requiresQuotes" | "static" | "override" | "async")[];
|
|
17412
17439
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17413
17440
|
} | {
|
|
@@ -17421,6 +17448,7 @@ type FlawlessNamingConvention = ({
|
|
|
17421
17448
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17422
17449
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17423
17450
|
selector: "classicAccessor";
|
|
17451
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17424
17452
|
modifiers?: ("abstract" | "private" | "protected" | "public" | "requiresQuotes" | "static" | "override")[];
|
|
17425
17453
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17426
17454
|
} | {
|
|
@@ -17434,6 +17462,7 @@ type FlawlessNamingConvention = ({
|
|
|
17434
17462
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17435
17463
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17436
17464
|
selector: "autoAccessor";
|
|
17465
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17437
17466
|
modifiers?: ("abstract" | "private" | "protected" | "public" | "requiresQuotes" | "static" | "override")[];
|
|
17438
17467
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17439
17468
|
} | {
|
|
@@ -17447,6 +17476,7 @@ type FlawlessNamingConvention = ({
|
|
|
17447
17476
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17448
17477
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17449
17478
|
selector: "accessor";
|
|
17479
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17450
17480
|
modifiers?: ("abstract" | "private" | "protected" | "public" | "requiresQuotes" | "static" | "override")[];
|
|
17451
17481
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
17452
17482
|
} | {
|
|
@@ -17460,6 +17490,7 @@ type FlawlessNamingConvention = ({
|
|
|
17460
17490
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17461
17491
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17462
17492
|
selector: "enumMember";
|
|
17493
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17463
17494
|
modifiers?: ("requiresQuotes")[];
|
|
17464
17495
|
} | {
|
|
17465
17496
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17472,6 +17503,7 @@ type FlawlessNamingConvention = ({
|
|
|
17472
17503
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17473
17504
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17474
17505
|
selector: "objectStyleEnumMember";
|
|
17506
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17475
17507
|
modifiers?: ("requiresQuotes")[];
|
|
17476
17508
|
} | {
|
|
17477
17509
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17484,6 +17516,7 @@ type FlawlessNamingConvention = ({
|
|
|
17484
17516
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17485
17517
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17486
17518
|
selector: "typeLike";
|
|
17519
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17487
17520
|
modifiers?: ("abstract" | "exported" | "unused")[];
|
|
17488
17521
|
} | {
|
|
17489
17522
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17496,6 +17529,7 @@ type FlawlessNamingConvention = ({
|
|
|
17496
17529
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17497
17530
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17498
17531
|
selector: "class";
|
|
17532
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17499
17533
|
modifiers?: ("abstract" | "exported" | "unused")[];
|
|
17500
17534
|
} | {
|
|
17501
17535
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17508,6 +17542,7 @@ type FlawlessNamingConvention = ({
|
|
|
17508
17542
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17509
17543
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17510
17544
|
selector: "interface";
|
|
17545
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17511
17546
|
modifiers?: ("exported" | "unused")[];
|
|
17512
17547
|
} | {
|
|
17513
17548
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17520,6 +17555,7 @@ type FlawlessNamingConvention = ({
|
|
|
17520
17555
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17521
17556
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17522
17557
|
selector: "typeAlias";
|
|
17558
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17523
17559
|
modifiers?: ("exported" | "unused")[];
|
|
17524
17560
|
} | {
|
|
17525
17561
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17532,6 +17568,7 @@ type FlawlessNamingConvention = ({
|
|
|
17532
17568
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17533
17569
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17534
17570
|
selector: "enum";
|
|
17571
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17535
17572
|
modifiers?: ("exported" | "unused")[];
|
|
17536
17573
|
} | {
|
|
17537
17574
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17544,6 +17581,7 @@ type FlawlessNamingConvention = ({
|
|
|
17544
17581
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17545
17582
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17546
17583
|
selector: "typeParameter";
|
|
17584
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17547
17585
|
modifiers?: ("unused")[];
|
|
17548
17586
|
} | {
|
|
17549
17587
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -17556,6 +17594,7 @@ type FlawlessNamingConvention = ({
|
|
|
17556
17594
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
17557
17595
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
17558
17596
|
selector: "import";
|
|
17597
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
17559
17598
|
modifiers?: ("default" | "namespace")[];
|
|
17560
17599
|
})[];
|
|
17561
17600
|
interface _FlawlessNamingConvention_MatchRegexConfig {
|
package/dist/index.mjs
CHANGED
|
@@ -18679,6 +18679,7 @@ var init_oxlint_native = __esmMin((() => {
|
|
|
18679
18679
|
"getter-return",
|
|
18680
18680
|
"grouped-accessor-pairs",
|
|
18681
18681
|
"guard-for-in",
|
|
18682
|
+
"id-denylist",
|
|
18682
18683
|
"id-length",
|
|
18683
18684
|
"id-match",
|
|
18684
18685
|
"import/consistent-type-specifier-style",
|
|
@@ -18780,6 +18781,7 @@ var init_oxlint_native = __esmMin((() => {
|
|
|
18780
18781
|
"jsdoc/check-tag-names",
|
|
18781
18782
|
"jsdoc/empty-tags",
|
|
18782
18783
|
"jsdoc/implements-on-classes",
|
|
18784
|
+
"jsdoc/no-blank-blocks",
|
|
18783
18785
|
"jsdoc/no-defaults",
|
|
18784
18786
|
"jsdoc/require-param",
|
|
18785
18787
|
"jsdoc/require-param-description",
|
|
@@ -18988,6 +18990,7 @@ var init_oxlint_native = __esmMin((() => {
|
|
|
18988
18990
|
"no-warning-comments",
|
|
18989
18991
|
"no-with",
|
|
18990
18992
|
"node/callback-return",
|
|
18993
|
+
"node/exports-style",
|
|
18991
18994
|
"node/global-require",
|
|
18992
18995
|
"node/handle-callback-err",
|
|
18993
18996
|
"node/no-exports-assign",
|
|
@@ -18996,13 +18999,16 @@ var init_oxlint_native = __esmMin((() => {
|
|
|
18996
18999
|
"node/no-path-concat",
|
|
18997
19000
|
"node/no-process-env",
|
|
18998
19001
|
"node/no-sync",
|
|
19002
|
+
"node/no-top-level-await",
|
|
18999
19003
|
"object-shorthand",
|
|
19004
|
+
"one-var",
|
|
19000
19005
|
"operator-assignment",
|
|
19001
19006
|
"oxc/approx-constant",
|
|
19002
19007
|
"oxc/bad-array-method-on-arguments",
|
|
19003
19008
|
"oxc/bad-bitwise-operator",
|
|
19004
19009
|
"oxc/bad-char-at-comparison",
|
|
19005
19010
|
"oxc/bad-comparison-sequence",
|
|
19011
|
+
"oxc/bad-match-all-arg",
|
|
19006
19012
|
"oxc/bad-min-max-func",
|
|
19007
19013
|
"oxc/bad-object-literal-comparison",
|
|
19008
19014
|
"oxc/bad-replace-all-arg",
|
|
@@ -19067,6 +19073,7 @@ var init_oxlint_native = __esmMin((() => {
|
|
|
19067
19073
|
"react/forbid-dom-props",
|
|
19068
19074
|
"react/forbid-elements",
|
|
19069
19075
|
"react/forward-ref-uses-ref",
|
|
19076
|
+
"react/function-component-definition",
|
|
19070
19077
|
"react/hook-use-state",
|
|
19071
19078
|
"react/iframe-missing-sandbox",
|
|
19072
19079
|
"react/jsx-boolean-value",
|
|
@@ -19411,6 +19418,7 @@ var init_oxlint_native = __esmMin((() => {
|
|
|
19411
19418
|
"vitest/no-test-return-statement",
|
|
19412
19419
|
"vitest/no-unneeded-async-expect-function",
|
|
19413
19420
|
"vitest/padding-around-after-all-blocks",
|
|
19421
|
+
"vitest/padding-around-test-blocks",
|
|
19414
19422
|
"vitest/prefer-called-exactly-once-with",
|
|
19415
19423
|
"vitest/prefer-called-once",
|
|
19416
19424
|
"vitest/prefer-called-times",
|
package/dist/lint-cli.mjs
CHANGED
|
@@ -38,7 +38,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
}) : target, mod));
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region package.json
|
|
41
|
-
var version = "6.0.0-beta.
|
|
41
|
+
var version = "6.0.0-beta.42";
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/lint-cli/lib/cli/types.ts
|
|
44
44
|
/**
|
package/dist/oxlint.d.mts
CHANGED
|
@@ -412,11 +412,6 @@ interface OxlintMainRuleDefaults {
|
|
|
412
412
|
"eslint-js/no-undef-init": {
|
|
413
413
|
"*": "error";
|
|
414
414
|
};
|
|
415
|
-
"eslint-js/one-var": {
|
|
416
|
-
"*": ["error", {
|
|
417
|
-
"initialized": "never";
|
|
418
|
-
}];
|
|
419
|
-
};
|
|
420
415
|
"flawless/arrow-return-style": {
|
|
421
416
|
"*": {
|
|
422
417
|
"severityOnly": "error";
|
|
@@ -543,9 +538,6 @@ interface OxlintMainRuleDefaults {
|
|
|
543
538
|
"jsdoc-js/no-blank-block-descriptions": {
|
|
544
539
|
"*": "warn";
|
|
545
540
|
};
|
|
546
|
-
"jsdoc-js/no-blank-blocks": {
|
|
547
|
-
"*": "warn";
|
|
548
|
-
};
|
|
549
541
|
"jsdoc-js/no-multi-asterisks": {
|
|
550
542
|
"*": "warn";
|
|
551
543
|
};
|
|
@@ -597,6 +589,9 @@ interface OxlintMainRuleDefaults {
|
|
|
597
589
|
"jsdoc/implements-on-classes": {
|
|
598
590
|
"*": "warn";
|
|
599
591
|
};
|
|
592
|
+
"jsdoc/no-blank-blocks": {
|
|
593
|
+
"*": "warn";
|
|
594
|
+
};
|
|
600
595
|
"jsdoc/no-defaults": {
|
|
601
596
|
"*": "warn";
|
|
602
597
|
};
|
|
@@ -1007,6 +1002,11 @@ interface OxlintMainRuleDefaults {
|
|
|
1007
1002
|
"ignoreConstructors": false;
|
|
1008
1003
|
}];
|
|
1009
1004
|
};
|
|
1005
|
+
"one-var": {
|
|
1006
|
+
"*": ["error", {
|
|
1007
|
+
"initialized": "never";
|
|
1008
|
+
}];
|
|
1009
|
+
};
|
|
1010
1010
|
"oxc/approx-constant": {
|
|
1011
1011
|
"*": "error";
|
|
1012
1012
|
};
|
|
@@ -2889,9 +2889,6 @@ interface OxlintMainRuleDefaults {
|
|
|
2889
2889
|
};
|
|
2890
2890
|
}
|
|
2891
2891
|
interface OxlintReactRuleDefaults {
|
|
2892
|
-
"eslint-js/one-var": {
|
|
2893
|
-
"*": "off";
|
|
2894
|
-
};
|
|
2895
2892
|
"flawless/jsx-shorthand-boolean": {
|
|
2896
2893
|
"*": "warn";
|
|
2897
2894
|
};
|
|
@@ -2916,6 +2913,9 @@ interface OxlintReactRuleDefaults {
|
|
|
2916
2913
|
"flawless/react-namespace": {
|
|
2917
2914
|
"*": "error";
|
|
2918
2915
|
};
|
|
2916
|
+
"one-var": {
|
|
2917
|
+
"*": "off";
|
|
2918
|
+
};
|
|
2919
2919
|
"perfectionist/sort-interfaces": {
|
|
2920
2920
|
"*": ["error", {
|
|
2921
2921
|
"customGroups": [{
|
|
@@ -4487,112 +4487,112 @@ interface RuleOptions {
|
|
|
4487
4487
|
'eslint-plugin/unique-test-case-names'?: Linter.RuleEntry<[]>;
|
|
4488
4488
|
/**
|
|
4489
4489
|
* Enforce arrow function return style based on line length
|
|
4490
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4490
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/arrow-return-style/documentation.md
|
|
4491
4491
|
*/
|
|
4492
4492
|
'flawless/arrow-return-style'?: Linter.RuleEntry<FlawlessArrowReturnStyle>;
|
|
4493
4493
|
/**
|
|
4494
4494
|
* Disallow shorthand boolean JSX attributes
|
|
4495
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4495
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/jsx-shorthand-boolean/documentation.md
|
|
4496
4496
|
*/
|
|
4497
4497
|
'flawless/jsx-shorthand-boolean'?: Linter.RuleEntry<[]>;
|
|
4498
4498
|
/**
|
|
4499
4499
|
* Enforce a consistent fragment form: the shorthand `<>...</>` or a named fragment
|
|
4500
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4500
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/jsx-shorthand-fragment/documentation.md
|
|
4501
4501
|
*/
|
|
4502
4502
|
'flawless/jsx-shorthand-fragment'?: Linter.RuleEntry<FlawlessJsxShorthandFragment>;
|
|
4503
4503
|
/**
|
|
4504
4504
|
* Enforce a maximum number of lines of code in a function
|
|
4505
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4505
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/max-lines-per-function/documentation.md
|
|
4506
4506
|
*/
|
|
4507
4507
|
'flawless/max-lines-per-function'?: Linter.RuleEntry<FlawlessMaxLinesPerFunction>;
|
|
4508
4508
|
/**
|
|
4509
4509
|
* Enforce naming conventions for everything across a codebase
|
|
4510
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4510
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/naming-convention/documentation.md
|
|
4511
4511
|
*/
|
|
4512
4512
|
'flawless/naming-convention'?: Linter.RuleEntry<FlawlessNamingConvention>;
|
|
4513
4513
|
/**
|
|
4514
4514
|
* Disallow conditional logic in tests
|
|
4515
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4515
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-conditional-in-test/documentation.md
|
|
4516
4516
|
*/
|
|
4517
4517
|
'flawless/no-conditional-in-test'?: Linter.RuleEntry<FlawlessNoConditionalInTest>;
|
|
4518
4518
|
/**
|
|
4519
4519
|
* Disallow anonymous arrow functions as export default declarations
|
|
4520
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4520
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-export-default-arrow/documentation.md
|
|
4521
4521
|
*/
|
|
4522
4522
|
'flawless/no-export-default-arrow'?: Linter.RuleEntry<[]>;
|
|
4523
4523
|
/**
|
|
4524
4524
|
* Disallow exact equality checks involving floating-point-sensitive values
|
|
4525
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4525
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-floating-point-equality/documentation.md
|
|
4526
4526
|
*/
|
|
4527
4527
|
'flawless/no-floating-point-equality'?: Linter.RuleEntry<[]>;
|
|
4528
4528
|
/**
|
|
4529
4529
|
* Disallow tsconfig options that redundantly re-set a value already provided by an extended config
|
|
4530
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4530
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-redundant-tsconfig-options/documentation.md
|
|
4531
4531
|
*/
|
|
4532
4532
|
'flawless/no-redundant-tsconfig-options'?: Linter.RuleEntry<[]>;
|
|
4533
4533
|
/**
|
|
4534
4534
|
* Disallow mocks created once and shared between tests
|
|
4535
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4535
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-shared-mocks/documentation.md
|
|
4536
4536
|
*/
|
|
4537
4537
|
'flawless/no-shared-mocks'?: Linter.RuleEntry<[]>;
|
|
4538
4538
|
/**
|
|
4539
4539
|
* Disallow unnecessary usage of 'useCallback'
|
|
4540
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4540
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-unnecessary-use-callback/documentation.md
|
|
4541
4541
|
*/
|
|
4542
4542
|
'flawless/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
4543
4543
|
/**
|
|
4544
4544
|
* Disallow unnecessary usage of 'useMemo'
|
|
4545
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4545
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/no-unnecessary-use-memo/documentation.md
|
|
4546
4546
|
*/
|
|
4547
4547
|
'flawless/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
4548
4548
|
/**
|
|
4549
4549
|
* Enforce a blank line after `expect.assertions` and `expect.hasAssertions`
|
|
4550
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4550
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/padding-after-expect-assertions/documentation.md
|
|
4551
4551
|
*/
|
|
4552
4552
|
'flawless/padding-after-expect-assertions'?: Linter.RuleEntry<[]>;
|
|
4553
4553
|
/**
|
|
4554
4554
|
* Enforce destructuring assignment for component props
|
|
4555
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4555
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/prefer-destructuring-assignment/documentation.md
|
|
4556
4556
|
*/
|
|
4557
4557
|
'flawless/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
4558
4558
|
/**
|
|
4559
4559
|
* Prefer having the last statement in a test be an assertion
|
|
4560
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4560
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/prefer-ending-with-an-expect/documentation.md
|
|
4561
4561
|
*/
|
|
4562
4562
|
'flawless/prefer-ending-with-an-expect'?: Linter.RuleEntry<FlawlessPreferEndingWithAnExpect>;
|
|
4563
4563
|
/**
|
|
4564
4564
|
* Prefer `expect.assertions(<count>)` over `expect.hasAssertions()`
|
|
4565
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4565
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/prefer-expect-assertions-count/documentation.md
|
|
4566
4566
|
*/
|
|
4567
4567
|
'flawless/prefer-expect-assertions-count'?: Linter.RuleEntry<[]>;
|
|
4568
4568
|
/**
|
|
4569
4569
|
* Enforce destructuring parameters in the function signature
|
|
4570
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4570
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/prefer-parameter-destructuring/documentation.md
|
|
4571
4571
|
*/
|
|
4572
4572
|
'flawless/prefer-parameter-destructuring'?: Linter.RuleEntry<FlawlessPreferParameterDestructuring>;
|
|
4573
4573
|
/**
|
|
4574
4574
|
* Enforce that function component props are read-only
|
|
4575
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4575
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/prefer-read-only-props/documentation.md
|
|
4576
4576
|
*/
|
|
4577
4577
|
'flawless/prefer-read-only-props'?: Linter.RuleEntry<FlawlessPreferReadOnlyProps>;
|
|
4578
4578
|
/**
|
|
4579
4579
|
* Disallow impure calls such as `math.random` or `os.clock` during render
|
|
4580
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4580
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/purity/documentation.md
|
|
4581
4581
|
*/
|
|
4582
4582
|
'flawless/purity'?: Linter.RuleEntry<FlawlessPurity>;
|
|
4583
4583
|
/**
|
|
4584
4584
|
* Prefer named imports for React runtime values and the React namespace for React types
|
|
4585
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4585
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/react-namespace/documentation.md
|
|
4586
4586
|
*/
|
|
4587
4587
|
'flawless/react-namespace'?: Linter.RuleEntry<[]>;
|
|
4588
4588
|
/**
|
|
4589
4589
|
* Enforce a configured sort order for TOML keys and tables
|
|
4590
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4590
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/toml-sort-keys/documentation.md
|
|
4591
4591
|
*/
|
|
4592
4592
|
'flawless/toml-sort-keys'?: Linter.RuleEntry<FlawlessTomlSortKeys>;
|
|
4593
4593
|
/**
|
|
4594
4594
|
* Enforce blank lines around top-level YAML block collection keys
|
|
4595
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4595
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.11.0/src/rules/yaml-block-key-blank-lines/documentation.md
|
|
4596
4596
|
*/
|
|
4597
4597
|
'flawless/yaml-block-key-blank-lines'?: Linter.RuleEntry<[]>;
|
|
4598
4598
|
/**
|
|
@@ -14480,6 +14480,16 @@ type _FlawlessNamingConventionFormatOptionsConfig = (_FlawlessNamingConventionPr
|
|
|
14480
14480
|
type _FlawlessNamingConventionPredefinedFormats = ("camelCase" | "strictCamelCase" | "PascalCase" | "StrictPascalCase" | "snake_case" | "UPPER_CASE");
|
|
14481
14481
|
type _FlawlessNamingConventionUnderscoreOptions = ("forbid" | "allow" | "require" | "requireDouble" | "allowDouble" | "allowSingleOrDouble");
|
|
14482
14482
|
type _FlawlessNamingConvention_PrefixSuffixConfig = string[];
|
|
14483
|
+
type _FlawlessNamingConvention_TypeArgumentReferenceMatcher = (_FlawlessNamingConventionTypeArgumentReferenceMatcher & {
|
|
14484
|
+
name?: string;
|
|
14485
|
+
from?: string;
|
|
14486
|
+
});
|
|
14487
|
+
type _FlawlessNamingConventionTypeArgumentReferenceMatcher = ({
|
|
14488
|
+
[k: string]: unknown | undefined;
|
|
14489
|
+
} | {
|
|
14490
|
+
[k: string]: unknown | undefined;
|
|
14491
|
+
});
|
|
14492
|
+
type _FlawlessNamingConvention_TypeArgumentOfConfig = _FlawlessNamingConvention_TypeArgumentReferenceMatcher[];
|
|
14483
14493
|
type _FlawlessNamingConventionTypeMatcher = (("boolean" | "string" | "number" | "function" | "array") | _FlawlessNamingConvention_TypeReferenceMatcher);
|
|
14484
14494
|
type _FlawlessNamingConvention_TypeReferenceMatcher = (_FlawlessNamingConventionTypeReferenceMatcher & {
|
|
14485
14495
|
name?: string;
|
|
@@ -14522,6 +14532,7 @@ type FlawlessNamingConvention = ({
|
|
|
14522
14532
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14523
14533
|
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace" | "constAsserted")[];
|
|
14524
14534
|
selector: ("default" | "variableLike" | "memberLike" | "typeLike" | "method" | "property" | "accessor" | "variable" | "function" | "parameter" | "objectStyleEnum" | "parameterProperty" | "classicAccessor" | "enumMember" | "objectStyleEnumMember" | "classMethod" | "objectLiteralMethod" | "typeMethod" | "classProperty" | "objectLiteralProperty" | "typeProperty" | "autoAccessor" | "class" | "interface" | "typeAlias" | "enum" | "typeParameter" | "import")[];
|
|
14535
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14525
14536
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14526
14537
|
} | {
|
|
14527
14538
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14534,6 +14545,7 @@ type FlawlessNamingConvention = ({
|
|
|
14534
14545
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14535
14546
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14536
14547
|
selector: "default";
|
|
14548
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14537
14549
|
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace" | "constAsserted")[];
|
|
14538
14550
|
} | {
|
|
14539
14551
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14546,6 +14558,7 @@ type FlawlessNamingConvention = ({
|
|
|
14546
14558
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14547
14559
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14548
14560
|
selector: "variableLike";
|
|
14561
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14549
14562
|
modifiers?: ("unused" | "async")[];
|
|
14550
14563
|
} | {
|
|
14551
14564
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14558,6 +14571,7 @@ type FlawlessNamingConvention = ({
|
|
|
14558
14571
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14559
14572
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14560
14573
|
selector: "variable";
|
|
14574
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14561
14575
|
modifiers?: ("const" | "constAsserted" | "destructured" | "exported" | "global" | "unused" | "async")[];
|
|
14562
14576
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14563
14577
|
} | {
|
|
@@ -14571,6 +14585,7 @@ type FlawlessNamingConvention = ({
|
|
|
14571
14585
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14572
14586
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14573
14587
|
selector: "function";
|
|
14588
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14574
14589
|
modifiers?: ("exported" | "global" | "unused" | "async")[];
|
|
14575
14590
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14576
14591
|
} | {
|
|
@@ -14584,6 +14599,7 @@ type FlawlessNamingConvention = ({
|
|
|
14584
14599
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14585
14600
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14586
14601
|
selector: "parameter";
|
|
14602
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14587
14603
|
modifiers?: ("destructured" | "unused")[];
|
|
14588
14604
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14589
14605
|
} | {
|
|
@@ -14597,6 +14613,7 @@ type FlawlessNamingConvention = ({
|
|
|
14597
14613
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14598
14614
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14599
14615
|
selector: "objectStyleEnum";
|
|
14616
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14600
14617
|
modifiers?: ("const" | "exported" | "global" | "unused")[];
|
|
14601
14618
|
} | {
|
|
14602
14619
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14609,6 +14626,7 @@ type FlawlessNamingConvention = ({
|
|
|
14609
14626
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14610
14627
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14611
14628
|
selector: "memberLike";
|
|
14629
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14612
14630
|
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "readonly" | "requiresQuotes" | "static" | "override" | "async")[];
|
|
14613
14631
|
} | {
|
|
14614
14632
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14621,6 +14639,7 @@ type FlawlessNamingConvention = ({
|
|
|
14621
14639
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14622
14640
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14623
14641
|
selector: "classProperty";
|
|
14642
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14624
14643
|
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "readonly" | "requiresQuotes" | "static" | "override")[];
|
|
14625
14644
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14626
14645
|
} | {
|
|
@@ -14634,6 +14653,7 @@ type FlawlessNamingConvention = ({
|
|
|
14634
14653
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14635
14654
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14636
14655
|
selector: "objectLiteralProperty";
|
|
14656
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14637
14657
|
modifiers?: ("public" | "requiresQuotes")[];
|
|
14638
14658
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14639
14659
|
} | {
|
|
@@ -14647,6 +14667,7 @@ type FlawlessNamingConvention = ({
|
|
|
14647
14667
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14648
14668
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14649
14669
|
selector: "typeProperty";
|
|
14670
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14650
14671
|
modifiers?: ("public" | "readonly" | "requiresQuotes")[];
|
|
14651
14672
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14652
14673
|
} | {
|
|
@@ -14660,6 +14681,7 @@ type FlawlessNamingConvention = ({
|
|
|
14660
14681
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14661
14682
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14662
14683
|
selector: "parameterProperty";
|
|
14684
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14663
14685
|
modifiers?: ("private" | "protected" | "public" | "readonly")[];
|
|
14664
14686
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14665
14687
|
} | {
|
|
@@ -14673,6 +14695,7 @@ type FlawlessNamingConvention = ({
|
|
|
14673
14695
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14674
14696
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14675
14697
|
selector: "property";
|
|
14698
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14676
14699
|
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "readonly" | "requiresQuotes" | "static" | "override" | "async")[];
|
|
14677
14700
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14678
14701
|
} | {
|
|
@@ -14686,6 +14709,7 @@ type FlawlessNamingConvention = ({
|
|
|
14686
14709
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14687
14710
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14688
14711
|
selector: "classMethod";
|
|
14712
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14689
14713
|
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "requiresQuotes" | "static" | "override" | "async")[];
|
|
14690
14714
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14691
14715
|
} | {
|
|
@@ -14699,6 +14723,7 @@ type FlawlessNamingConvention = ({
|
|
|
14699
14723
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14700
14724
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14701
14725
|
selector: "objectLiteralMethod";
|
|
14726
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14702
14727
|
modifiers?: ("public" | "requiresQuotes" | "async")[];
|
|
14703
14728
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14704
14729
|
} | {
|
|
@@ -14712,6 +14737,7 @@ type FlawlessNamingConvention = ({
|
|
|
14712
14737
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14713
14738
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14714
14739
|
selector: "typeMethod";
|
|
14740
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14715
14741
|
modifiers?: ("public" | "requiresQuotes")[];
|
|
14716
14742
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14717
14743
|
} | {
|
|
@@ -14725,6 +14751,7 @@ type FlawlessNamingConvention = ({
|
|
|
14725
14751
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14726
14752
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14727
14753
|
selector: "method";
|
|
14754
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14728
14755
|
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "requiresQuotes" | "static" | "override" | "async")[];
|
|
14729
14756
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14730
14757
|
} | {
|
|
@@ -14738,6 +14765,7 @@ type FlawlessNamingConvention = ({
|
|
|
14738
14765
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14739
14766
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14740
14767
|
selector: "classicAccessor";
|
|
14768
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14741
14769
|
modifiers?: ("abstract" | "private" | "protected" | "public" | "requiresQuotes" | "static" | "override")[];
|
|
14742
14770
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14743
14771
|
} | {
|
|
@@ -14751,6 +14779,7 @@ type FlawlessNamingConvention = ({
|
|
|
14751
14779
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14752
14780
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14753
14781
|
selector: "autoAccessor";
|
|
14782
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14754
14783
|
modifiers?: ("abstract" | "private" | "protected" | "public" | "requiresQuotes" | "static" | "override")[];
|
|
14755
14784
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14756
14785
|
} | {
|
|
@@ -14764,6 +14793,7 @@ type FlawlessNamingConvention = ({
|
|
|
14764
14793
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14765
14794
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14766
14795
|
selector: "accessor";
|
|
14796
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14767
14797
|
modifiers?: ("abstract" | "private" | "protected" | "public" | "requiresQuotes" | "static" | "override")[];
|
|
14768
14798
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
14769
14799
|
} | {
|
|
@@ -14777,6 +14807,7 @@ type FlawlessNamingConvention = ({
|
|
|
14777
14807
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14778
14808
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14779
14809
|
selector: "enumMember";
|
|
14810
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14780
14811
|
modifiers?: ("requiresQuotes")[];
|
|
14781
14812
|
} | {
|
|
14782
14813
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14789,6 +14820,7 @@ type FlawlessNamingConvention = ({
|
|
|
14789
14820
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14790
14821
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14791
14822
|
selector: "objectStyleEnumMember";
|
|
14823
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14792
14824
|
modifiers?: ("requiresQuotes")[];
|
|
14793
14825
|
} | {
|
|
14794
14826
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14801,6 +14833,7 @@ type FlawlessNamingConvention = ({
|
|
|
14801
14833
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14802
14834
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14803
14835
|
selector: "typeLike";
|
|
14836
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14804
14837
|
modifiers?: ("abstract" | "exported" | "unused")[];
|
|
14805
14838
|
} | {
|
|
14806
14839
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14813,6 +14846,7 @@ type FlawlessNamingConvention = ({
|
|
|
14813
14846
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14814
14847
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14815
14848
|
selector: "class";
|
|
14849
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14816
14850
|
modifiers?: ("abstract" | "exported" | "unused")[];
|
|
14817
14851
|
} | {
|
|
14818
14852
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14825,6 +14859,7 @@ type FlawlessNamingConvention = ({
|
|
|
14825
14859
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14826
14860
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14827
14861
|
selector: "interface";
|
|
14862
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14828
14863
|
modifiers?: ("exported" | "unused")[];
|
|
14829
14864
|
} | {
|
|
14830
14865
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14837,6 +14872,7 @@ type FlawlessNamingConvention = ({
|
|
|
14837
14872
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14838
14873
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14839
14874
|
selector: "typeAlias";
|
|
14875
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14840
14876
|
modifiers?: ("exported" | "unused")[];
|
|
14841
14877
|
} | {
|
|
14842
14878
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14849,6 +14885,7 @@ type FlawlessNamingConvention = ({
|
|
|
14849
14885
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14850
14886
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14851
14887
|
selector: "enum";
|
|
14888
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14852
14889
|
modifiers?: ("exported" | "unused")[];
|
|
14853
14890
|
} | {
|
|
14854
14891
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14861,6 +14898,7 @@ type FlawlessNamingConvention = ({
|
|
|
14861
14898
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14862
14899
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14863
14900
|
selector: "typeParameter";
|
|
14901
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14864
14902
|
modifiers?: ("unused")[];
|
|
14865
14903
|
} | {
|
|
14866
14904
|
allowedWords?: _FlawlessNamingConvention_AllowedWordsConfig;
|
|
@@ -14873,6 +14911,7 @@ type FlawlessNamingConvention = ({
|
|
|
14873
14911
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
14874
14912
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
14875
14913
|
selector: "import";
|
|
14914
|
+
typeArgumentOf?: _FlawlessNamingConvention_TypeArgumentOfConfig;
|
|
14876
14915
|
modifiers?: ("default" | "namespace")[];
|
|
14877
14916
|
})[];
|
|
14878
14917
|
interface _FlawlessNamingConvention_MatchRegexConfig {
|
|
@@ -25307,6 +25346,10 @@ interface OxlintNativeRuleOptions {
|
|
|
25307
25346
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/guard-for-in.html
|
|
25308
25347
|
*/
|
|
25309
25348
|
'guard-for-in'?: DummyRuleMap$1['guard-for-in'];
|
|
25349
|
+
/**
|
|
25350
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/id-denylist.html
|
|
25351
|
+
*/
|
|
25352
|
+
'id-denylist'?: DummyRuleMap$1['id-denylist'];
|
|
25310
25353
|
/**
|
|
25311
25354
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/id-length.html
|
|
25312
25355
|
*/
|
|
@@ -25711,6 +25754,10 @@ interface OxlintNativeRuleOptions {
|
|
|
25711
25754
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/jsdoc/implements-on-classes.html
|
|
25712
25755
|
*/
|
|
25713
25756
|
'jsdoc/implements-on-classes'?: DummyRuleMap$1['jsdoc/implements-on-classes'];
|
|
25757
|
+
/**
|
|
25758
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/jsdoc/no-blank-blocks.html
|
|
25759
|
+
*/
|
|
25760
|
+
'jsdoc/no-blank-blocks'?: DummyRuleMap$1['jsdoc/no-blank-blocks'];
|
|
25714
25761
|
/**
|
|
25715
25762
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/jsdoc/no-defaults.html
|
|
25716
25763
|
*/
|
|
@@ -26543,6 +26590,10 @@ interface OxlintNativeRuleOptions {
|
|
|
26543
26590
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/node/callback-return.html
|
|
26544
26591
|
*/
|
|
26545
26592
|
'node/callback-return'?: DummyRuleMap$1['node/callback-return'];
|
|
26593
|
+
/**
|
|
26594
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/node/exports-style.html
|
|
26595
|
+
*/
|
|
26596
|
+
'node/exports-style'?: DummyRuleMap$1['node/exports-style'];
|
|
26546
26597
|
/**
|
|
26547
26598
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/node/global-require.html
|
|
26548
26599
|
*/
|
|
@@ -26575,10 +26626,18 @@ interface OxlintNativeRuleOptions {
|
|
|
26575
26626
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/node/no-sync.html
|
|
26576
26627
|
*/
|
|
26577
26628
|
'node/no-sync'?: DummyRuleMap$1['node/no-sync'];
|
|
26629
|
+
/**
|
|
26630
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/node/no-top-level-await.html
|
|
26631
|
+
*/
|
|
26632
|
+
'node/no-top-level-await'?: DummyRuleMap$1['node/no-top-level-await'];
|
|
26578
26633
|
/**
|
|
26579
26634
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/object-shorthand.html
|
|
26580
26635
|
*/
|
|
26581
26636
|
'object-shorthand'?: DummyRuleMap$1['object-shorthand'];
|
|
26637
|
+
/**
|
|
26638
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/one-var.html
|
|
26639
|
+
*/
|
|
26640
|
+
'one-var'?: DummyRuleMap$1['one-var'];
|
|
26582
26641
|
/**
|
|
26583
26642
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/operator-assignment.html
|
|
26584
26643
|
*/
|
|
@@ -26603,6 +26662,10 @@ interface OxlintNativeRuleOptions {
|
|
|
26603
26662
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-comparison-sequence.html
|
|
26604
26663
|
*/
|
|
26605
26664
|
'oxc/bad-comparison-sequence'?: DummyRuleMap$1['oxc/bad-comparison-sequence'];
|
|
26665
|
+
/**
|
|
26666
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-match-all-arg.html
|
|
26667
|
+
*/
|
|
26668
|
+
'oxc/bad-match-all-arg'?: DummyRuleMap$1['oxc/bad-match-all-arg'];
|
|
26606
26669
|
/**
|
|
26607
26670
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-min-max-func.html
|
|
26608
26671
|
*/
|
|
@@ -26859,6 +26922,10 @@ interface OxlintNativeRuleOptions {
|
|
|
26859
26922
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/react/forward-ref-uses-ref.html
|
|
26860
26923
|
*/
|
|
26861
26924
|
'react/forward-ref-uses-ref'?: DummyRuleMap$1['react/forward-ref-uses-ref'];
|
|
26925
|
+
/**
|
|
26926
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/react/function-component-definition.html
|
|
26927
|
+
*/
|
|
26928
|
+
'react/function-component-definition'?: DummyRuleMap$1['react/function-component-definition'];
|
|
26862
26929
|
/**
|
|
26863
26930
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/react/hook-use-state.html
|
|
26864
26931
|
*/
|
|
@@ -28353,6 +28420,10 @@ interface OxlintNativeRuleOptions {
|
|
|
28353
28420
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/padding-around-after-all-blocks.html
|
|
28354
28421
|
*/
|
|
28355
28422
|
'vitest/padding-around-after-all-blocks'?: DummyRuleMap$1['vitest/padding-around-after-all-blocks'];
|
|
28423
|
+
/**
|
|
28424
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/padding-around-test-blocks.html
|
|
28425
|
+
*/
|
|
28426
|
+
'vitest/padding-around-test-blocks'?: DummyRuleMap$1['vitest/padding-around-test-blocks'];
|
|
28356
28427
|
/**
|
|
28357
28428
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-called-exactly-once-with.html
|
|
28358
28429
|
*/
|
package/dist/oxlint.mjs
CHANGED
|
@@ -3812,6 +3812,7 @@ const oxlintNativeRuleNames = /* @__PURE__ */ new Set([
|
|
|
3812
3812
|
"getter-return",
|
|
3813
3813
|
"grouped-accessor-pairs",
|
|
3814
3814
|
"guard-for-in",
|
|
3815
|
+
"id-denylist",
|
|
3815
3816
|
"id-length",
|
|
3816
3817
|
"id-match",
|
|
3817
3818
|
"import/consistent-type-specifier-style",
|
|
@@ -3913,6 +3914,7 @@ const oxlintNativeRuleNames = /* @__PURE__ */ new Set([
|
|
|
3913
3914
|
"jsdoc/check-tag-names",
|
|
3914
3915
|
"jsdoc/empty-tags",
|
|
3915
3916
|
"jsdoc/implements-on-classes",
|
|
3917
|
+
"jsdoc/no-blank-blocks",
|
|
3916
3918
|
"jsdoc/no-defaults",
|
|
3917
3919
|
"jsdoc/require-param",
|
|
3918
3920
|
"jsdoc/require-param-description",
|
|
@@ -4121,6 +4123,7 @@ const oxlintNativeRuleNames = /* @__PURE__ */ new Set([
|
|
|
4121
4123
|
"no-warning-comments",
|
|
4122
4124
|
"no-with",
|
|
4123
4125
|
"node/callback-return",
|
|
4126
|
+
"node/exports-style",
|
|
4124
4127
|
"node/global-require",
|
|
4125
4128
|
"node/handle-callback-err",
|
|
4126
4129
|
"node/no-exports-assign",
|
|
@@ -4129,13 +4132,16 @@ const oxlintNativeRuleNames = /* @__PURE__ */ new Set([
|
|
|
4129
4132
|
"node/no-path-concat",
|
|
4130
4133
|
"node/no-process-env",
|
|
4131
4134
|
"node/no-sync",
|
|
4135
|
+
"node/no-top-level-await",
|
|
4132
4136
|
"object-shorthand",
|
|
4137
|
+
"one-var",
|
|
4133
4138
|
"operator-assignment",
|
|
4134
4139
|
"oxc/approx-constant",
|
|
4135
4140
|
"oxc/bad-array-method-on-arguments",
|
|
4136
4141
|
"oxc/bad-bitwise-operator",
|
|
4137
4142
|
"oxc/bad-char-at-comparison",
|
|
4138
4143
|
"oxc/bad-comparison-sequence",
|
|
4144
|
+
"oxc/bad-match-all-arg",
|
|
4139
4145
|
"oxc/bad-min-max-func",
|
|
4140
4146
|
"oxc/bad-object-literal-comparison",
|
|
4141
4147
|
"oxc/bad-replace-all-arg",
|
|
@@ -4200,6 +4206,7 @@ const oxlintNativeRuleNames = /* @__PURE__ */ new Set([
|
|
|
4200
4206
|
"react/forbid-dom-props",
|
|
4201
4207
|
"react/forbid-elements",
|
|
4202
4208
|
"react/forward-ref-uses-ref",
|
|
4209
|
+
"react/function-component-definition",
|
|
4203
4210
|
"react/hook-use-state",
|
|
4204
4211
|
"react/iframe-missing-sandbox",
|
|
4205
4212
|
"react/jsx-boolean-value",
|
|
@@ -4544,6 +4551,7 @@ const oxlintNativeRuleNames = /* @__PURE__ */ new Set([
|
|
|
4544
4551
|
"vitest/no-test-return-statement",
|
|
4545
4552
|
"vitest/no-unneeded-async-expect-function",
|
|
4546
4553
|
"vitest/padding-around-after-all-blocks",
|
|
4554
|
+
"vitest/padding-around-test-blocks",
|
|
4547
4555
|
"vitest/prefer-called-exactly-once-with",
|
|
4548
4556
|
"vitest/prefer-called-once",
|
|
4549
4557
|
"vitest/prefer-called-times",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isentinel/eslint-config",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.42",
|
|
4
4
|
"description": "iSentinel's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@eslint/markdown": "8.0.3",
|
|
62
62
|
"@isentinel/dict-rbxts": "latest",
|
|
63
63
|
"@isentinel/dict-roblox": "latest",
|
|
64
|
-
"@oxlint/plugins": "1.
|
|
64
|
+
"@oxlint/plugins": "1.78.0",
|
|
65
65
|
"@pobammer-ts/small-rules": "2.14.0",
|
|
66
66
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
67
67
|
"@typescript-eslint/eslint-plugin": "8.65.0",
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"eslint-plugin-better-max-params": "1.0.0",
|
|
77
77
|
"eslint-plugin-comment-length": "2.3.1",
|
|
78
78
|
"eslint-plugin-de-morgan": "2.1.3",
|
|
79
|
-
"eslint-plugin-flawless": "1.
|
|
79
|
+
"eslint-plugin-flawless": "1.11.0",
|
|
80
80
|
"eslint-plugin-format-lua": "2.0.0",
|
|
81
81
|
"eslint-plugin-import-lite": "0.6.0",
|
|
82
82
|
"eslint-plugin-jsdoc": "63.2.2",
|
|
83
83
|
"eslint-plugin-jsonc": "3.3.0",
|
|
84
|
-
"eslint-plugin-oxfmt": "0.
|
|
84
|
+
"eslint-plugin-oxfmt": "0.18.0",
|
|
85
85
|
"eslint-plugin-package-json": "1.7.0",
|
|
86
86
|
"eslint-plugin-perfectionist": "5.10.1",
|
|
87
87
|
"eslint-plugin-pnpm": "1.7.0",
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
"globals": "17.7.0",
|
|
99
99
|
"jsonc-eslint-parser": "3.1.0",
|
|
100
100
|
"local-pkg": "1.2.1",
|
|
101
|
-
"oxfmt": "0.
|
|
102
|
-
"oxlint-plugin-eslint": "1.
|
|
101
|
+
"oxfmt": "0.63.0",
|
|
102
|
+
"oxlint-plugin-eslint": "1.78.0",
|
|
103
103
|
"oxlint-plugin-oxlint-comments": "0.1.0",
|
|
104
104
|
"prettier": "3.9.6",
|
|
105
105
|
"semver": "7.8.5",
|
|
@@ -134,8 +134,8 @@
|
|
|
134
134
|
"eslint-plugin-testing-library": "7.16.2",
|
|
135
135
|
"eslint-typegen": "2.3.1",
|
|
136
136
|
"jiti": "2.7.0",
|
|
137
|
-
"oxlint": "1.
|
|
138
|
-
"oxlint-tsgolint": "0.
|
|
137
|
+
"oxlint": "1.78.0",
|
|
138
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
139
139
|
"parse-gitignore-ts": "1.0.0",
|
|
140
140
|
"picomatch": "4.0.5",
|
|
141
141
|
"pnpm-workspace-yaml": "1.7.0",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"typescript": "6.0.3",
|
|
145
145
|
"unplugin-unused": "0.5.7",
|
|
146
146
|
"vitest": "4.1.10",
|
|
147
|
-
"@isentinel/eslint-config": "6.0.0-beta.
|
|
147
|
+
"@isentinel/eslint-config": "6.0.0-beta.42"
|
|
148
148
|
},
|
|
149
149
|
"peerDependencies": {
|
|
150
150
|
"@vitest/eslint-plugin": "^1.6.4",
|