@isentinel/eslint-config 6.0.0-beta.21 → 6.0.0-beta.23
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 +31 -0
- package/dist/cli.mjs +13 -12
- package/dist/index.d.mts +211 -98
- package/dist/index.mjs +103 -42
- package/dist/lint-cli.mjs +6 -6
- package/dist/oxlint.d.mts +271 -165
- package/dist/oxlint.mjs +186 -9
- package/package.json +23 -22
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
2
2
|
import { StylisticCustomizeOptions } from "@stylistic/eslint-plugin";
|
|
3
3
|
import { ParserOptions } from "@typescript-eslint/parser";
|
|
4
|
-
import { ESLintReactSettings } from "@eslint-react/shared";
|
|
5
4
|
import { SetRequired } from "type-fest";
|
|
6
5
|
import { Linter } from "eslint";
|
|
7
6
|
import { Options, Options as PrettierOptions } from "prettier";
|
|
@@ -5172,9 +5171,24 @@ interface TestRuleDefaults {
|
|
|
5172
5171
|
"skipComments": true;
|
|
5173
5172
|
}];
|
|
5174
5173
|
};
|
|
5174
|
+
"flawless/no-conditional-in-test": {
|
|
5175
|
+
"*": ["error", {
|
|
5176
|
+
"additionalTestBlockFunctions": [];
|
|
5177
|
+
"allowOptionalChaining": false;
|
|
5178
|
+
}];
|
|
5179
|
+
};
|
|
5175
5180
|
"flawless/padding-after-expect-assertions": {
|
|
5176
5181
|
"*": "warn";
|
|
5177
5182
|
};
|
|
5183
|
+
"flawless/prefer-ending-with-an-expect": {
|
|
5184
|
+
"*": ["warn", {
|
|
5185
|
+
"additionalTestBlockFunctions": [];
|
|
5186
|
+
"assertFunctionNames": ["expect", "expectTypeOf", "assertType"];
|
|
5187
|
+
}];
|
|
5188
|
+
};
|
|
5189
|
+
"flawless/prefer-expect-assertions-count": {
|
|
5190
|
+
"*": "warn";
|
|
5191
|
+
};
|
|
5178
5192
|
"jest/consistent-test-it": {
|
|
5179
5193
|
"*": "error";
|
|
5180
5194
|
};
|
|
@@ -5332,7 +5346,9 @@ interface TestRuleDefaults {
|
|
|
5332
5346
|
"*": "error";
|
|
5333
5347
|
};
|
|
5334
5348
|
"jest/valid-expect-with-promise": {
|
|
5335
|
-
"*": "error"
|
|
5349
|
+
"*": ["error", {
|
|
5350
|
+
"checkThenables": true;
|
|
5351
|
+
}];
|
|
5336
5352
|
};
|
|
5337
5353
|
"jest/valid-title": {
|
|
5338
5354
|
"*": ["error", {
|
|
@@ -5462,9 +5478,6 @@ interface TestRuleDefaults {
|
|
|
5462
5478
|
"expectAssertions": false;
|
|
5463
5479
|
}];
|
|
5464
5480
|
};
|
|
5465
|
-
"vitest/no-conditional-in-test": {
|
|
5466
|
-
"*": "error";
|
|
5467
|
-
};
|
|
5468
5481
|
"vitest/no-conditional-tests": {
|
|
5469
5482
|
"*": "error";
|
|
5470
5483
|
};
|
|
@@ -6344,7 +6357,7 @@ interface OverrideSiteChains {
|
|
|
6344
6357
|
type TestChain = [TestRuleDefaults, SourceFeatureRuleDefaults, MainRuleDefaults];
|
|
6345
6358
|
type ValidateOptionsWith<O, VK extends VariantKey> = ValidateSite<O, "rules", MainChain, VK> & ValidateSubOptionsFromTable<O, OverrideSiteChains, VK> & ValidateTestOption<O, TestChain, VK>;
|
|
6346
6359
|
//#endregion
|
|
6347
|
-
//#region node_modules/.
|
|
6360
|
+
//#region ../../../setup-pnpm/node_modules/.bin/store/v11/links/@/eslint-config-flat-gitignore/2.3.0/1320bd07004d149fd5c550ffda02aec5ecff7717d8f1602b7e9e51dffe8368d5/node_modules/eslint-config-flat-gitignore/dist/index.d.mts
|
|
6348
6361
|
interface FlatGitignoreOptions {
|
|
6349
6362
|
/**
|
|
6350
6363
|
* Name of the configuration.
|
|
@@ -7017,87 +7030,102 @@ interface RuleOptions {
|
|
|
7017
7030
|
'eslint-plugin/unique-test-case-names'?: Linter.RuleEntry<[]>;
|
|
7018
7031
|
/**
|
|
7019
7032
|
* Enforce arrow function return style based on line length
|
|
7020
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7033
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/arrow-return-style/documentation.md
|
|
7021
7034
|
*/
|
|
7022
7035
|
'flawless/arrow-return-style'?: Linter.RuleEntry<FlawlessArrowReturnStyle>;
|
|
7023
7036
|
/**
|
|
7024
7037
|
* Disallow shorthand boolean JSX attributes
|
|
7025
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7038
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/jsx-shorthand-boolean/documentation.md
|
|
7026
7039
|
*/
|
|
7027
7040
|
'flawless/jsx-shorthand-boolean'?: Linter.RuleEntry<[]>;
|
|
7028
7041
|
/**
|
|
7029
7042
|
* Enforce a consistent fragment form: the shorthand `<>...</>` or a named fragment
|
|
7030
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7043
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/jsx-shorthand-fragment/documentation.md
|
|
7031
7044
|
*/
|
|
7032
7045
|
'flawless/jsx-shorthand-fragment'?: Linter.RuleEntry<FlawlessJsxShorthandFragment>;
|
|
7033
7046
|
/**
|
|
7034
7047
|
* Enforce a maximum number of lines of code in a function
|
|
7035
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7048
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/max-lines-per-function/documentation.md
|
|
7036
7049
|
*/
|
|
7037
7050
|
'flawless/max-lines-per-function'?: Linter.RuleEntry<FlawlessMaxLinesPerFunction>;
|
|
7038
7051
|
/**
|
|
7039
7052
|
* Enforce naming conventions for everything across a codebase
|
|
7040
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7053
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/naming-convention/documentation.md
|
|
7041
7054
|
*/
|
|
7042
7055
|
'flawless/naming-convention'?: Linter.RuleEntry<FlawlessNamingConvention>;
|
|
7056
|
+
/**
|
|
7057
|
+
* Disallow conditional logic in tests
|
|
7058
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/no-conditional-in-test/documentation.md
|
|
7059
|
+
*/
|
|
7060
|
+
'flawless/no-conditional-in-test'?: Linter.RuleEntry<FlawlessNoConditionalInTest>;
|
|
7043
7061
|
/**
|
|
7044
7062
|
* Disallow anonymous arrow functions as export default declarations
|
|
7045
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7063
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/no-export-default-arrow/documentation.md
|
|
7046
7064
|
*/
|
|
7047
7065
|
'flawless/no-export-default-arrow'?: Linter.RuleEntry<[]>;
|
|
7048
7066
|
/**
|
|
7049
7067
|
* Disallow tsconfig options that redundantly re-set a value already provided by an extended config
|
|
7050
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7068
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/no-redundant-tsconfig-options/documentation.md
|
|
7051
7069
|
*/
|
|
7052
7070
|
'flawless/no-redundant-tsconfig-options'?: Linter.RuleEntry<[]>;
|
|
7053
7071
|
/**
|
|
7054
7072
|
* Disallow unnecessary usage of 'useCallback'
|
|
7055
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7073
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/no-unnecessary-use-callback/documentation.md
|
|
7056
7074
|
*/
|
|
7057
7075
|
'flawless/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
7058
7076
|
/**
|
|
7059
7077
|
* Disallow unnecessary usage of 'useMemo'
|
|
7060
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7078
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/no-unnecessary-use-memo/documentation.md
|
|
7061
7079
|
*/
|
|
7062
7080
|
'flawless/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
7063
7081
|
/**
|
|
7064
7082
|
* Enforce a blank line after `expect.assertions` and `expect.hasAssertions`
|
|
7065
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7083
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/padding-after-expect-assertions/documentation.md
|
|
7066
7084
|
*/
|
|
7067
7085
|
'flawless/padding-after-expect-assertions'?: Linter.RuleEntry<[]>;
|
|
7068
7086
|
/**
|
|
7069
7087
|
* Enforce destructuring assignment for component props
|
|
7070
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7088
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/prefer-destructuring-assignment/documentation.md
|
|
7071
7089
|
*/
|
|
7072
7090
|
'flawless/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
7091
|
+
/**
|
|
7092
|
+
* Prefer having the last statement in a test be an assertion
|
|
7093
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/prefer-ending-with-an-expect/documentation.md
|
|
7094
|
+
*/
|
|
7095
|
+
'flawless/prefer-ending-with-an-expect'?: Linter.RuleEntry<FlawlessPreferEndingWithAnExpect>;
|
|
7096
|
+
/**
|
|
7097
|
+
* Prefer `expect.assertions(<count>)` over `expect.hasAssertions()`
|
|
7098
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/prefer-expect-assertions-count/documentation.md
|
|
7099
|
+
*/
|
|
7100
|
+
'flawless/prefer-expect-assertions-count'?: Linter.RuleEntry<[]>;
|
|
7073
7101
|
/**
|
|
7074
7102
|
* Enforce destructuring parameters in the function signature
|
|
7075
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7103
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/prefer-parameter-destructuring/documentation.md
|
|
7076
7104
|
*/
|
|
7077
7105
|
'flawless/prefer-parameter-destructuring'?: Linter.RuleEntry<FlawlessPreferParameterDestructuring>;
|
|
7078
7106
|
/**
|
|
7079
7107
|
* Enforce that function component props are read-only
|
|
7080
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7108
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/prefer-read-only-props/documentation.md
|
|
7081
7109
|
*/
|
|
7082
7110
|
'flawless/prefer-read-only-props'?: Linter.RuleEntry<FlawlessPreferReadOnlyProps>;
|
|
7083
7111
|
/**
|
|
7084
7112
|
* Disallow impure calls such as `math.random` or `os.clock` during render
|
|
7085
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7113
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/purity/documentation.md
|
|
7086
7114
|
*/
|
|
7087
7115
|
'flawless/purity'?: Linter.RuleEntry<FlawlessPurity>;
|
|
7088
7116
|
/**
|
|
7089
7117
|
* Prefer named imports for React runtime values and the React namespace for React types
|
|
7090
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7118
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/react-namespace/documentation.md
|
|
7091
7119
|
*/
|
|
7092
7120
|
'flawless/react-namespace'?: Linter.RuleEntry<[]>;
|
|
7093
7121
|
/**
|
|
7094
7122
|
* Enforce a configured sort order for TOML keys and tables
|
|
7095
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7123
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/toml-sort-keys/documentation.md
|
|
7096
7124
|
*/
|
|
7097
7125
|
'flawless/toml-sort-keys'?: Linter.RuleEntry<FlawlessTomlSortKeys>;
|
|
7098
7126
|
/**
|
|
7099
7127
|
* Enforce blank lines around top-level YAML block collection keys
|
|
7100
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7128
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.1/src/rules/yaml-block-key-blank-lines/documentation.md
|
|
7101
7129
|
*/
|
|
7102
7130
|
'flawless/yaml-block-key-blank-lines'?: Linter.RuleEntry<[]>;
|
|
7103
7131
|
/**
|
|
@@ -7266,357 +7294,357 @@ interface RuleOptions {
|
|
|
7266
7294
|
'init-declarations'?: Linter.RuleEntry<InitDeclarations>;
|
|
7267
7295
|
/**
|
|
7268
7296
|
* Enforce `test` and `it` usage conventions
|
|
7269
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7297
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/consistent-test-it.md
|
|
7270
7298
|
*/
|
|
7271
7299
|
'jest/consistent-test-it'?: Linter.RuleEntry<JestConsistentTestIt>;
|
|
7272
7300
|
/**
|
|
7273
7301
|
* Enforce assertion to be made in a test body
|
|
7274
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7302
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/expect-expect.md
|
|
7275
7303
|
*/
|
|
7276
7304
|
'jest/expect-expect'?: Linter.RuleEntry<JestExpectExpect>;
|
|
7277
7305
|
/**
|
|
7278
7306
|
* Enforces a maximum number assertion calls in a test body
|
|
7279
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7307
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/max-expects.md
|
|
7280
7308
|
*/
|
|
7281
7309
|
'jest/max-expects'?: Linter.RuleEntry<JestMaxExpects>;
|
|
7282
7310
|
/**
|
|
7283
7311
|
* Enforces a maximum depth to nested describe calls
|
|
7284
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7312
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/max-nested-describe.md
|
|
7285
7313
|
*/
|
|
7286
7314
|
'jest/max-nested-describe'?: Linter.RuleEntry<JestMaxNestedDescribe>;
|
|
7287
7315
|
/**
|
|
7288
7316
|
* Disallow alias methods
|
|
7289
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7317
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-alias-methods.md
|
|
7290
7318
|
*/
|
|
7291
7319
|
'jest/no-alias-methods'?: Linter.RuleEntry<[]>;
|
|
7292
7320
|
/**
|
|
7293
7321
|
* Disallow commented out tests
|
|
7294
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7322
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-commented-out-tests.md
|
|
7295
7323
|
*/
|
|
7296
7324
|
'jest/no-commented-out-tests'?: Linter.RuleEntry<[]>;
|
|
7297
7325
|
/**
|
|
7298
7326
|
* Disallow calling `expect` conditionally
|
|
7299
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7327
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-conditional-expect.md
|
|
7300
7328
|
*/
|
|
7301
7329
|
'jest/no-conditional-expect'?: Linter.RuleEntry<[]>;
|
|
7302
7330
|
/**
|
|
7303
7331
|
* Disallow conditional logic in tests
|
|
7304
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7332
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-conditional-in-test.md
|
|
7305
7333
|
*/
|
|
7306
7334
|
'jest/no-conditional-in-test'?: Linter.RuleEntry<JestNoConditionalInTest>;
|
|
7307
7335
|
/**
|
|
7308
7336
|
* Disallow confusing usages of jest.setTimeout
|
|
7309
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7337
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-confusing-set-timeout.md
|
|
7310
7338
|
*/
|
|
7311
7339
|
'jest/no-confusing-set-timeout'?: Linter.RuleEntry<[]>;
|
|
7312
7340
|
/**
|
|
7313
7341
|
* Disallow use of deprecated functions
|
|
7314
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7342
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-deprecated-functions.md
|
|
7315
7343
|
*/
|
|
7316
7344
|
'jest/no-deprecated-functions'?: Linter.RuleEntry<[]>;
|
|
7317
7345
|
/**
|
|
7318
7346
|
* Disallow disabled tests
|
|
7319
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7347
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-disabled-tests.md
|
|
7320
7348
|
*/
|
|
7321
7349
|
'jest/no-disabled-tests'?: Linter.RuleEntry<[]>;
|
|
7322
7350
|
/**
|
|
7323
7351
|
* Disallow using a callback in asynchronous tests and hooks
|
|
7324
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7352
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-done-callback.md
|
|
7325
7353
|
*/
|
|
7326
7354
|
'jest/no-done-callback'?: Linter.RuleEntry<[]>;
|
|
7327
7355
|
/**
|
|
7328
7356
|
* Disallow duplicate setup and teardown hooks
|
|
7329
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7357
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-duplicate-hooks.md
|
|
7330
7358
|
*/
|
|
7331
7359
|
'jest/no-duplicate-hooks'?: Linter.RuleEntry<[]>;
|
|
7332
7360
|
/**
|
|
7333
7361
|
* Disallow using equality matchers on error types
|
|
7334
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7362
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-error-equal.md
|
|
7335
7363
|
*/
|
|
7336
7364
|
'jest/no-error-equal'?: Linter.RuleEntry<[]>;
|
|
7337
7365
|
/**
|
|
7338
7366
|
* Disallow using `exports` in files containing tests
|
|
7339
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7367
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-export.md
|
|
7340
7368
|
*/
|
|
7341
7369
|
'jest/no-export'?: Linter.RuleEntry<[]>;
|
|
7342
7370
|
/**
|
|
7343
7371
|
* Disallow focused tests
|
|
7344
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7372
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-focused-tests.md
|
|
7345
7373
|
*/
|
|
7346
7374
|
'jest/no-focused-tests'?: Linter.RuleEntry<[]>;
|
|
7347
7375
|
/**
|
|
7348
7376
|
* Disallow setup and teardown hooks
|
|
7349
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7377
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-hooks.md
|
|
7350
7378
|
*/
|
|
7351
7379
|
'jest/no-hooks'?: Linter.RuleEntry<JestNoHooks>;
|
|
7352
7380
|
/**
|
|
7353
7381
|
* Disallow identical titles
|
|
7354
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7382
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-identical-title.md
|
|
7355
7383
|
*/
|
|
7356
7384
|
'jest/no-identical-title'?: Linter.RuleEntry<[]>;
|
|
7357
7385
|
/**
|
|
7358
7386
|
* Disallow string interpolation inside snapshots
|
|
7359
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7387
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-interpolation-in-snapshots.md
|
|
7360
7388
|
*/
|
|
7361
7389
|
'jest/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>;
|
|
7362
7390
|
/**
|
|
7363
7391
|
* Disallow Jasmine globals
|
|
7364
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7392
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-jasmine-globals.md
|
|
7365
7393
|
*/
|
|
7366
7394
|
'jest/no-jasmine-globals'?: Linter.RuleEntry<[]>;
|
|
7367
7395
|
/**
|
|
7368
7396
|
* Disallow large snapshots
|
|
7369
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7397
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-large-snapshots.md
|
|
7370
7398
|
*/
|
|
7371
7399
|
'jest/no-large-snapshots'?: Linter.RuleEntry<JestNoLargeSnapshots>;
|
|
7372
7400
|
/**
|
|
7373
7401
|
* Disallow manually importing from `__mocks__`
|
|
7374
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7402
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-mocks-import.md
|
|
7375
7403
|
*/
|
|
7376
7404
|
'jest/no-mocks-import'?: Linter.RuleEntry<[]>;
|
|
7377
7405
|
/**
|
|
7378
7406
|
* Disallow specific `jest.` methods
|
|
7379
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7407
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-restricted-jest-methods.md
|
|
7380
7408
|
*/
|
|
7381
7409
|
'jest/no-restricted-jest-methods'?: Linter.RuleEntry<JestNoRestrictedJestMethods>;
|
|
7382
7410
|
/**
|
|
7383
7411
|
* Disallow specific matchers & modifiers
|
|
7384
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7412
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-restricted-matchers.md
|
|
7385
7413
|
*/
|
|
7386
7414
|
'jest/no-restricted-matchers'?: Linter.RuleEntry<JestNoRestrictedMatchers>;
|
|
7387
7415
|
/**
|
|
7388
7416
|
* Disallow using `expect` outside of `it` or `test` blocks
|
|
7389
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7417
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-standalone-expect.md
|
|
7390
7418
|
*/
|
|
7391
7419
|
'jest/no-standalone-expect'?: Linter.RuleEntry<JestNoStandaloneExpect>;
|
|
7392
7420
|
/**
|
|
7393
7421
|
* Require using `.only` and `.skip` over `f` and `x`
|
|
7394
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7422
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-test-prefixes.md
|
|
7395
7423
|
*/
|
|
7396
7424
|
'jest/no-test-prefixes'?: Linter.RuleEntry<[]>;
|
|
7397
7425
|
/**
|
|
7398
7426
|
* Disallow explicitly returning from tests
|
|
7399
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7427
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-test-return-statement.md
|
|
7400
7428
|
*/
|
|
7401
7429
|
'jest/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
7402
7430
|
/**
|
|
7403
7431
|
* Disallow unnecessary assertions based on types
|
|
7404
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7432
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-unnecessary-assertion.md
|
|
7405
7433
|
*/
|
|
7406
7434
|
'jest/no-unnecessary-assertion'?: Linter.RuleEntry<[]>;
|
|
7407
7435
|
/**
|
|
7408
7436
|
* Disallow unnecessary async function wrapper for expected promises
|
|
7409
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7437
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-unneeded-async-expect-function.md
|
|
7410
7438
|
*/
|
|
7411
7439
|
'jest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
7412
7440
|
/**
|
|
7413
7441
|
* Disallow using `jest.mock()` factories without an explicit type parameter
|
|
7414
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7442
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-untyped-mock-factory.md
|
|
7415
7443
|
*/
|
|
7416
7444
|
'jest/no-untyped-mock-factory'?: Linter.RuleEntry<[]>;
|
|
7417
7445
|
/**
|
|
7418
7446
|
* Enforce padding around `afterAll` blocks
|
|
7419
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7447
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/padding-around-after-all-blocks.md
|
|
7420
7448
|
*/
|
|
7421
7449
|
'jest/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>;
|
|
7422
7450
|
/**
|
|
7423
7451
|
* Enforce padding around `afterEach` blocks
|
|
7424
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7452
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/padding-around-after-each-blocks.md
|
|
7425
7453
|
*/
|
|
7426
7454
|
'jest/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>;
|
|
7427
7455
|
/**
|
|
7428
7456
|
* Enforce padding around Jest functions
|
|
7429
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7457
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/padding-around-all.md
|
|
7430
7458
|
*/
|
|
7431
7459
|
'jest/padding-around-all'?: Linter.RuleEntry<[]>;
|
|
7432
7460
|
/**
|
|
7433
7461
|
* Enforce padding around `beforeAll` blocks
|
|
7434
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7462
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/padding-around-before-all-blocks.md
|
|
7435
7463
|
*/
|
|
7436
7464
|
'jest/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>;
|
|
7437
7465
|
/**
|
|
7438
7466
|
* Enforce padding around `beforeEach` blocks
|
|
7439
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7467
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/padding-around-before-each-blocks.md
|
|
7440
7468
|
*/
|
|
7441
7469
|
'jest/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>;
|
|
7442
7470
|
/**
|
|
7443
7471
|
* Enforce padding around `describe` blocks
|
|
7444
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7472
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/padding-around-describe-blocks.md
|
|
7445
7473
|
*/
|
|
7446
7474
|
'jest/padding-around-describe-blocks'?: Linter.RuleEntry<[]>;
|
|
7447
7475
|
/**
|
|
7448
7476
|
* Enforce padding around `expect` groups
|
|
7449
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7477
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/padding-around-expect-groups.md
|
|
7450
7478
|
*/
|
|
7451
7479
|
'jest/padding-around-expect-groups'?: Linter.RuleEntry<[]>;
|
|
7452
7480
|
/**
|
|
7453
7481
|
* Enforce padding around `test` and `it` blocks
|
|
7454
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7482
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/padding-around-test-blocks.md
|
|
7455
7483
|
*/
|
|
7456
7484
|
'jest/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
|
|
7457
7485
|
/**
|
|
7458
7486
|
* Suggest using `toHaveBeenCalledWith()`
|
|
7459
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7487
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-called-with.md
|
|
7460
7488
|
*/
|
|
7461
7489
|
'jest/prefer-called-with'?: Linter.RuleEntry<[]>;
|
|
7462
7490
|
/**
|
|
7463
7491
|
* Suggest using the built-in comparison matchers
|
|
7464
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7492
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-comparison-matcher.md
|
|
7465
7493
|
*/
|
|
7466
7494
|
'jest/prefer-comparison-matcher'?: Linter.RuleEntry<[]>;
|
|
7467
7495
|
/**
|
|
7468
7496
|
* Prefer using `.each` rather than manual loops
|
|
7469
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7497
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-each.md
|
|
7470
7498
|
*/
|
|
7471
7499
|
'jest/prefer-each'?: Linter.RuleEntry<[]>;
|
|
7472
7500
|
/**
|
|
7473
7501
|
* Prefer having the last statement in a test be an assertion
|
|
7474
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7502
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-ending-with-an-expect.md
|
|
7475
7503
|
*/
|
|
7476
7504
|
'jest/prefer-ending-with-an-expect'?: Linter.RuleEntry<JestPreferEndingWithAnExpect>;
|
|
7477
7505
|
/**
|
|
7478
7506
|
* Suggest using the built-in equality matchers
|
|
7479
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7507
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-equality-matcher.md
|
|
7480
7508
|
*/
|
|
7481
7509
|
'jest/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
|
|
7482
7510
|
/**
|
|
7483
7511
|
* Suggest using `expect.assertions()` OR `expect.hasAssertions()`
|
|
7484
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7512
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-expect-assertions.md
|
|
7485
7513
|
*/
|
|
7486
7514
|
'jest/prefer-expect-assertions'?: Linter.RuleEntry<JestPreferExpectAssertions>;
|
|
7487
7515
|
/**
|
|
7488
7516
|
* Prefer `await expect(...).resolves` over `expect(await ...)` syntax
|
|
7489
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7517
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-expect-resolves.md
|
|
7490
7518
|
*/
|
|
7491
7519
|
'jest/prefer-expect-resolves'?: Linter.RuleEntry<[]>;
|
|
7492
7520
|
/**
|
|
7493
7521
|
* Prefer having hooks in a consistent order
|
|
7494
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7522
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-hooks-in-order.md
|
|
7495
7523
|
*/
|
|
7496
7524
|
'jest/prefer-hooks-in-order'?: Linter.RuleEntry<[]>;
|
|
7497
7525
|
/**
|
|
7498
7526
|
* Suggest having hooks before any test cases
|
|
7499
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7527
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-hooks-on-top.md
|
|
7500
7528
|
*/
|
|
7501
7529
|
'jest/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
|
|
7502
7530
|
/**
|
|
7503
7531
|
* Prefer importing Jest globals
|
|
7504
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7532
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-importing-jest-globals.md
|
|
7505
7533
|
*/
|
|
7506
7534
|
'jest/prefer-importing-jest-globals'?: Linter.RuleEntry<JestPreferImportingJestGlobals>;
|
|
7507
7535
|
/**
|
|
7508
7536
|
* Prefer `jest.mocked()` over `fn as jest.Mock`
|
|
7509
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7537
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-jest-mocked.md
|
|
7510
7538
|
*/
|
|
7511
7539
|
'jest/prefer-jest-mocked'?: Linter.RuleEntry<[]>;
|
|
7512
7540
|
/**
|
|
7513
7541
|
* Enforce lowercase test names
|
|
7514
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7542
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-lowercase-title.md
|
|
7515
7543
|
*/
|
|
7516
7544
|
'jest/prefer-lowercase-title'?: Linter.RuleEntry<JestPreferLowercaseTitle>;
|
|
7517
7545
|
/**
|
|
7518
7546
|
* Prefer mock resolved/rejected shorthands for promises
|
|
7519
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7547
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-mock-promise-shorthand.md
|
|
7520
7548
|
*/
|
|
7521
7549
|
'jest/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
7522
7550
|
/**
|
|
7523
7551
|
* Prefer mock return shorthands
|
|
7524
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7552
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-mock-return-shorthand.md
|
|
7525
7553
|
*/
|
|
7526
7554
|
'jest/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
7527
7555
|
/**
|
|
7528
7556
|
* Prefer including a hint with external snapshots
|
|
7529
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7557
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-snapshot-hint.md
|
|
7530
7558
|
*/
|
|
7531
7559
|
'jest/prefer-snapshot-hint'?: Linter.RuleEntry<JestPreferSnapshotHint>;
|
|
7532
7560
|
/**
|
|
7533
7561
|
* Suggest using `jest.spyOn()`
|
|
7534
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7562
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-spy-on.md
|
|
7535
7563
|
*/
|
|
7536
7564
|
'jest/prefer-spy-on'?: Linter.RuleEntry<[]>;
|
|
7537
7565
|
/**
|
|
7538
7566
|
* Suggest using `toStrictEqual()`
|
|
7539
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7567
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-strict-equal.md
|
|
7540
7568
|
*/
|
|
7541
7569
|
'jest/prefer-strict-equal'?: Linter.RuleEntry<[]>;
|
|
7542
7570
|
/**
|
|
7543
7571
|
* Suggest using `toBe()` for primitive literals
|
|
7544
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7572
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-to-be.md
|
|
7545
7573
|
*/
|
|
7546
7574
|
'jest/prefer-to-be'?: Linter.RuleEntry<[]>;
|
|
7547
7575
|
/**
|
|
7548
7576
|
* Suggest using `toContain()`
|
|
7549
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7577
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-to-contain.md
|
|
7550
7578
|
*/
|
|
7551
7579
|
'jest/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
7552
7580
|
/**
|
|
7553
7581
|
* Suggest using `toHaveBeenCalled`
|
|
7554
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7582
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-to-have-been-called.md
|
|
7555
7583
|
*/
|
|
7556
7584
|
'jest/prefer-to-have-been-called'?: Linter.RuleEntry<[]>;
|
|
7557
7585
|
/**
|
|
7558
7586
|
* Suggest using `toHaveBeenCalledTimes()`
|
|
7559
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7587
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-to-have-been-called-times.md
|
|
7560
7588
|
*/
|
|
7561
7589
|
'jest/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
7562
7590
|
/**
|
|
7563
7591
|
* Suggest using `toHaveLength()`
|
|
7564
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7592
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-to-have-length.md
|
|
7565
7593
|
*/
|
|
7566
7594
|
'jest/prefer-to-have-length'?: Linter.RuleEntry<[]>;
|
|
7567
7595
|
/**
|
|
7568
7596
|
* Suggest using `test.todo`
|
|
7569
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7597
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/prefer-todo.md
|
|
7570
7598
|
*/
|
|
7571
7599
|
'jest/prefer-todo'?: Linter.RuleEntry<[]>;
|
|
7572
7600
|
/**
|
|
7573
7601
|
* Require setup and teardown code to be within a hook
|
|
7574
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7602
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/require-hook.md
|
|
7575
7603
|
*/
|
|
7576
7604
|
'jest/require-hook'?: Linter.RuleEntry<JestRequireHook>;
|
|
7577
7605
|
/**
|
|
7578
7606
|
* Require a message for `toThrow()`
|
|
7579
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7607
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/require-to-throw-message.md
|
|
7580
7608
|
*/
|
|
7581
7609
|
'jest/require-to-throw-message'?: Linter.RuleEntry<[]>;
|
|
7582
7610
|
/**
|
|
7583
7611
|
* Require test cases and hooks to be inside a `describe` block
|
|
7584
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7612
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/require-top-level-describe.md
|
|
7585
7613
|
*/
|
|
7586
7614
|
'jest/require-top-level-describe'?: Linter.RuleEntry<JestRequireTopLevelDescribe>;
|
|
7587
7615
|
/**
|
|
7588
7616
|
* Enforce unbound methods are called with their expected scope
|
|
7589
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7617
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/unbound-method.md
|
|
7590
7618
|
*/
|
|
7591
7619
|
'jest/unbound-method'?: Linter.RuleEntry<JestUnboundMethod>;
|
|
7592
7620
|
/**
|
|
7593
7621
|
* Enforce valid `describe()` callback
|
|
7594
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7622
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/valid-describe-callback.md
|
|
7595
7623
|
*/
|
|
7596
7624
|
'jest/valid-describe-callback'?: Linter.RuleEntry<[]>;
|
|
7597
7625
|
/**
|
|
7598
7626
|
* Enforce valid `expect()` usage
|
|
7599
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7627
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/valid-expect.md
|
|
7600
7628
|
*/
|
|
7601
7629
|
'jest/valid-expect'?: Linter.RuleEntry<JestValidExpect>;
|
|
7602
7630
|
/**
|
|
7603
7631
|
* Require promises that have expectations in their chain to be valid
|
|
7604
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7632
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/valid-expect-in-promise.md
|
|
7605
7633
|
*/
|
|
7606
7634
|
'jest/valid-expect-in-promise'?: Linter.RuleEntry<[]>;
|
|
7607
7635
|
/**
|
|
7608
7636
|
* Require that `resolve` and `reject` modifiers are present (and only) for promise-like types
|
|
7609
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7637
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/valid-expect-with-promise.md
|
|
7610
7638
|
*/
|
|
7611
|
-
'jest/valid-expect-with-promise'?: Linter.RuleEntry<
|
|
7639
|
+
'jest/valid-expect-with-promise'?: Linter.RuleEntry<JestValidExpectWithPromise>;
|
|
7612
7640
|
/**
|
|
7613
7641
|
* Disallow mocking of non-existing module paths
|
|
7614
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7642
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/valid-mock-module-path.md
|
|
7615
7643
|
*/
|
|
7616
7644
|
'jest/valid-mock-module-path'?: Linter.RuleEntry<JestValidMockModulePath>;
|
|
7617
7645
|
/**
|
|
7618
7646
|
* Enforce valid titles
|
|
7619
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
7647
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/valid-title.md
|
|
7620
7648
|
*/
|
|
7621
7649
|
'jest/valid-title'?: Linter.RuleEntry<JestValidTitle>;
|
|
7622
7650
|
/**
|
|
@@ -10171,6 +10199,11 @@ interface RuleOptions {
|
|
|
10171
10199
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
|
|
10172
10200
|
*/
|
|
10173
10201
|
'pnpm/yaml-enforce-settings'?: Linter.RuleEntry<PnpmYamlEnforceSettings>;
|
|
10202
|
+
/**
|
|
10203
|
+
* Disallow the anonymous `catalog:` in `pnpm-workspace.yaml` in favor of named catalogs
|
|
10204
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-anonymous-catalog.test.ts
|
|
10205
|
+
*/
|
|
10206
|
+
'pnpm/yaml-no-anonymous-catalog'?: Linter.RuleEntry<[]>;
|
|
10174
10207
|
/**
|
|
10175
10208
|
* Disallow duplicate catalog items in `pnpm-workspace.yaml`
|
|
10176
10209
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
|
|
@@ -13627,6 +13660,7 @@ interface RuleOptions {
|
|
|
13627
13660
|
/**
|
|
13628
13661
|
* Disallow specified modules when loaded by `import`
|
|
13629
13662
|
* @see https://typescript-eslint.io/rules/no-restricted-imports
|
|
13663
|
+
* @deprecated
|
|
13630
13664
|
*/
|
|
13631
13665
|
'ts/no-restricted-imports'?: Linter.RuleEntry<TsNoRestrictedImports>;
|
|
13632
13666
|
/**
|
|
@@ -17018,6 +17052,16 @@ interface _FlawlessNamingConvention_MatchRegexConfig {
|
|
|
17018
17052
|
match: boolean;
|
|
17019
17053
|
regex: string;
|
|
17020
17054
|
}
|
|
17055
|
+
// ----- flawless/no-conditional-in-test -----
|
|
17056
|
+
type FlawlessNoConditionalInTest = [] | [{
|
|
17057
|
+
additionalTestBlockFunctions?: string[];
|
|
17058
|
+
allowOptionalChaining?: boolean;
|
|
17059
|
+
}];
|
|
17060
|
+
// ----- flawless/prefer-ending-with-an-expect -----
|
|
17061
|
+
type FlawlessPreferEndingWithAnExpect = [] | [{
|
|
17062
|
+
additionalTestBlockFunctions?: string[];
|
|
17063
|
+
assertFunctionNames?: string[];
|
|
17064
|
+
}];
|
|
17021
17065
|
// ----- flawless/prefer-parameter-destructuring -----
|
|
17022
17066
|
type FlawlessPreferParameterDestructuring = [] | [{
|
|
17023
17067
|
allowSideEffectReordering?: boolean;
|
|
@@ -17300,6 +17344,10 @@ type JestValidExpect = [] | [{
|
|
|
17300
17344
|
minArgs?: number;
|
|
17301
17345
|
maxArgs?: number;
|
|
17302
17346
|
}];
|
|
17347
|
+
// ----- jest/valid-expect-with-promise -----
|
|
17348
|
+
type JestValidExpectWithPromise = [] | [{
|
|
17349
|
+
checkThenables?: boolean;
|
|
17350
|
+
}];
|
|
17303
17351
|
// ----- jest/valid-mock-module-path -----
|
|
17304
17352
|
type JestValidMockModulePath = [] | [{
|
|
17305
17353
|
moduleFileExtensions?: string[];
|
|
@@ -17555,6 +17603,7 @@ type JsdocNoUndefinedTypes = [] | [{
|
|
|
17555
17603
|
type JsdocNormalizeSeeLinks = [] | [{
|
|
17556
17604
|
canonicalForm?: ("pipe" | "prefix");
|
|
17557
17605
|
enableFixer?: boolean;
|
|
17606
|
+
wrapBareUrls?: boolean;
|
|
17558
17607
|
}];
|
|
17559
17608
|
// ----- jsdoc/prefer-import-tag -----
|
|
17560
17609
|
type JsdocPreferImportTag = [] | [{
|
|
@@ -26834,7 +26883,49 @@ interface PerfectionistConfig {
|
|
|
26834
26883
|
*/
|
|
26835
26884
|
sortObjectsJsx?: Partial<ExtractRuleOptions<NonNullable<RuleOptions["perfectionist/sort-objects"]>>[0]>;
|
|
26836
26885
|
}
|
|
26837
|
-
|
|
26886
|
+
/**
|
|
26887
|
+
* The analyzer settings `@eslint-react` reads from `settings["react-x"]`,
|
|
26888
|
+
* declared here rather than imported from `@eslint-react/shared`.
|
|
26889
|
+
*
|
|
26890
|
+
* Upstream derives its own type from a Zod schema, so importing it would put
|
|
26891
|
+
* `zod` in the published declarations — and `@eslint-react/shared` itself,
|
|
26892
|
+
* which is a build-time dependency consumers never install. The shape is six
|
|
26893
|
+
* optional primitives, so restating it costs nothing.
|
|
26894
|
+
* `test/react-settings.spec.ts` fails if the two ever drift apart.
|
|
26895
|
+
*/
|
|
26896
|
+
interface ReactSettings {
|
|
26897
|
+
/**
|
|
26898
|
+
* A pattern matching custom hooks to treat as effect hooks, alongside
|
|
26899
|
+
* `useEffect` and friends.
|
|
26900
|
+
*/
|
|
26901
|
+
additionalEffectHooks?: string;
|
|
26902
|
+
/**
|
|
26903
|
+
* A pattern matching custom hooks to treat as state hooks, alongside
|
|
26904
|
+
* `useState` and friends.
|
|
26905
|
+
*/
|
|
26906
|
+
additionalStateHooks?: string;
|
|
26907
|
+
/** How the React Compiler decides which components to compile. */
|
|
26908
|
+
compilationMode?: "all" | "annotation" | "infer" | "syntax";
|
|
26909
|
+
/**
|
|
26910
|
+
* The module React is imported from.
|
|
26911
|
+
*
|
|
26912
|
+
* @default "react"
|
|
26913
|
+
*/
|
|
26914
|
+
importSource?: string;
|
|
26915
|
+
/**
|
|
26916
|
+
* The prop a polymorphic component uses to override its element.
|
|
26917
|
+
*
|
|
26918
|
+
* @default "as"
|
|
26919
|
+
*/
|
|
26920
|
+
polymorphicPropName?: string;
|
|
26921
|
+
/**
|
|
26922
|
+
* The React version to assume, rather than detecting it.
|
|
26923
|
+
*
|
|
26924
|
+
* @default "detect"
|
|
26925
|
+
*/
|
|
26926
|
+
version?: string;
|
|
26927
|
+
}
|
|
26928
|
+
type ReactConfig = OptionsOverridesTypeAware & ReactSettings & {
|
|
26838
26929
|
/**
|
|
26839
26930
|
* Whether to enable the React Compiler rules.
|
|
26840
26931
|
*
|
|
@@ -27386,8 +27477,30 @@ declare const GLOB_EXCLUDE: string[];
|
|
|
27386
27477
|
declare function comments({ prettierOptions, stylistic }?: OptionsFormatters & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
27387
27478
|
//#endregion
|
|
27388
27479
|
//#region src/eslint/configs/disables.d.ts
|
|
27389
|
-
|
|
27480
|
+
/**
|
|
27481
|
+
* Rule relaxations keyed on where a file lives.
|
|
27482
|
+
*
|
|
27483
|
+
* Blocks whose `files` patterns anchor on an ancestor directory name pin
|
|
27484
|
+
* `basePath` to the workspace root. Without it they are silently dead in every
|
|
27485
|
+
* project that has its own `eslint.config.*`: ESLint 10 resolves the config
|
|
27486
|
+
* nearest each linted file and matches `files` against that config's directory,
|
|
27487
|
+
* so `**\/scripts/` never appears in the path being tested. Pinning can only
|
|
27488
|
+
* widen what these blocks match, and they contain nothing but `"off"`, so it
|
|
27489
|
+
* cannot introduce a new error.
|
|
27490
|
+
*
|
|
27491
|
+
* `disables/root` is deliberately left unpinned — its patterns are relative by
|
|
27492
|
+
* design, so under a nested config they resolve to that project's own top-level
|
|
27493
|
+
* files, which is exactly the intent.
|
|
27494
|
+
*
|
|
27495
|
+
* @param options - The resolved factory options.
|
|
27496
|
+
* @param options.root - Globs identifying root-level files.
|
|
27497
|
+
* @param options.workspaceRoot - Absolute workspace root, used as the base path
|
|
27498
|
+
* for ancestor-anchored blocks.
|
|
27499
|
+
* @returns The disables configs.
|
|
27500
|
+
*/
|
|
27501
|
+
declare function disables({ root, workspaceRoot }: {
|
|
27390
27502
|
root: Array<string>;
|
|
27503
|
+
workspaceRoot: string;
|
|
27391
27504
|
}): Array<TypedFlatConfigItem>;
|
|
27392
27505
|
//#endregion
|
|
27393
27506
|
//#region src/eslint/configs/e18e.d.ts
|
|
@@ -27572,4 +27685,4 @@ declare function unicorn({ complementIgnores, nameReplacements, roblox, root: cu
|
|
|
27572
27685
|
//#region src/eslint/configs/yaml.d.ts
|
|
27573
27686
|
declare function yaml({ files, overrides, stylistic }?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|
|
27574
27687
|
//#endregion
|
|
27575
|
-
export { type Awaitable, type ConfigNames, type FlatConfigComposer, GLOB_ALL_JSON, GLOB_ALL_SRC, GLOB_BIN, 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_LINTABLE_EXTENSIONS, GLOB_LUA, GLOB_MARKDOWN, GLOB_MARKDOWN_BLOCKS, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MISE, GLOB_PACKAGE_JSON, GLOB_PACKAGE_JSON_ROOT, GLOB_POSTCSS, GLOB_ROOT, GLOB_ROOT_SRC, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_EXTENSIONS, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_TYPE_TESTS, GLOB_XML, GLOB_YAML, GitignoreOptions, type JsdocOptions, type NamedFlatConfigItem, type NamedOptionsConfig, type NamingConfig, type NamingSelector, type OptionsComponentExtensions, type OptionsConfig, type OptionsE18e, type OptionsFiles, type OptionsFilesTypeAware, type OptionsFormatters, type OptionsHasRoblox, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsJest, type OptionsOverrides, type OptionsOverridesTypeAware, type OptionsPnpm, type OptionsProjectType, type OptionsStylistic, type OptionsTestFramework, type OptionsTypeScriptErasableOnly, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnicorn, type OptionsVitest, type OxfmtOptions, type PerfectionistConfig, type PrettierOptions, type ReactConfig, type Rules, type SpellCheckConfig, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, comments, isentinel as default, isentinel, defaultPluginRenaming, disables, e18e, eslintPlugin, flawless, gitignore, ignores$1 as ignores, imports, isAgentAutofixDisabled, isInAgentSession, isInEditorEnvironment, isInGitHooksOrLintStaged, javascript, jsdoc, jsonc, loadSmallRulesPlugin, markdown, naming, node, oxfmt, packageJson, perfectionist, pnpm, promise, react, roblox$1 as roblox, smallRules, sonarjs, sortCspell, sortGithubAction, sortMiseToml, sortPnpmWorkspace, sortRojoProject, sortTsconfig, spelling, stylistic$1 as stylistic, test, toml, typescript, unicorn, yaml };
|
|
27688
|
+
export { type Awaitable, type ConfigNames, type FlatConfigComposer, GLOB_ALL_JSON, GLOB_ALL_SRC, GLOB_BIN, 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_LINTABLE_EXTENSIONS, GLOB_LUA, GLOB_MARKDOWN, GLOB_MARKDOWN_BLOCKS, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MISE, GLOB_PACKAGE_JSON, GLOB_PACKAGE_JSON_ROOT, GLOB_POSTCSS, GLOB_ROOT, GLOB_ROOT_SRC, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_EXTENSIONS, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_TYPE_TESTS, GLOB_XML, GLOB_YAML, GitignoreOptions, type JsdocOptions, type NamedFlatConfigItem, type NamedOptionsConfig, type NamingConfig, type NamingSelector, type OptionsComponentExtensions, type OptionsConfig, type OptionsE18e, type OptionsFiles, type OptionsFilesTypeAware, type OptionsFormatters, type OptionsHasRoblox, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsJest, type OptionsOverrides, type OptionsOverridesTypeAware, type OptionsPnpm, type OptionsProjectType, type OptionsStylistic, type OptionsTestFramework, type OptionsTypeScriptErasableOnly, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnicorn, type OptionsVitest, type OxfmtOptions, type PerfectionistConfig, type PrettierOptions, type ReactConfig, type ReactSettings, type Rules, type SpellCheckConfig, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, comments, isentinel as default, isentinel, defaultPluginRenaming, disables, e18e, eslintPlugin, flawless, gitignore, ignores$1 as ignores, imports, isAgentAutofixDisabled, isInAgentSession, isInEditorEnvironment, isInGitHooksOrLintStaged, javascript, jsdoc, jsonc, loadSmallRulesPlugin, markdown, naming, node, oxfmt, packageJson, perfectionist, pnpm, promise, react, roblox$1 as roblox, smallRules, sonarjs, sortCspell, sortGithubAction, sortMiseToml, sortPnpmWorkspace, sortRojoProject, sortTsconfig, spelling, stylistic$1 as stylistic, test, toml, typescript, unicorn, yaml };
|