@isentinel/eslint-config 6.0.0-beta.21 → 6.0.0-beta.22
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 +6 -7
- package/dist/index.d.mts +135 -91
- package/dist/index.mjs +20 -3
- package/dist/lint-cli.mjs +1 -1
- package/dist/oxlint.d.mts +204 -162
- package/dist/oxlint.mjs +20 -4
- package/package.json +18 -19
package/dist/oxlint.d.mts
CHANGED
|
@@ -3123,9 +3123,22 @@ interface OxlintTestRuleDefaults {
|
|
|
3123
3123
|
"flawless/max-lines-per-function": {
|
|
3124
3124
|
"*": "off";
|
|
3125
3125
|
};
|
|
3126
|
+
"flawless/no-conditional-in-test": {
|
|
3127
|
+
"*": ["error", {
|
|
3128
|
+
"allowOptionalChaining": false;
|
|
3129
|
+
}];
|
|
3130
|
+
};
|
|
3126
3131
|
"flawless/padding-after-expect-assertions": {
|
|
3127
3132
|
"*": "warn";
|
|
3128
3133
|
};
|
|
3134
|
+
"flawless/prefer-ending-with-an-expect": {
|
|
3135
|
+
"*": ["warn", {
|
|
3136
|
+
"assertFunctionNames": ["expect", "expectTypeOf", "assertType"];
|
|
3137
|
+
}];
|
|
3138
|
+
};
|
|
3139
|
+
"flawless/prefer-expect-assertions-count": {
|
|
3140
|
+
"*": "warn";
|
|
3141
|
+
};
|
|
3129
3142
|
"jest-js/consistent-test-it": {
|
|
3130
3143
|
"*": "error";
|
|
3131
3144
|
};
|
|
@@ -3372,9 +3385,6 @@ interface OxlintTestRuleDefaults {
|
|
|
3372
3385
|
"vitest/no-conditional-expect": {
|
|
3373
3386
|
"*": "error";
|
|
3374
3387
|
};
|
|
3375
|
-
"vitest/no-conditional-in-test": {
|
|
3376
|
-
"*": "error";
|
|
3377
|
-
};
|
|
3378
3388
|
"vitest/no-conditional-tests": {
|
|
3379
3389
|
"*": "error";
|
|
3380
3390
|
};
|
|
@@ -4179,87 +4189,102 @@ interface RuleOptions {
|
|
|
4179
4189
|
'eslint-plugin/unique-test-case-names'?: Linter.RuleEntry<[]>;
|
|
4180
4190
|
/**
|
|
4181
4191
|
* Enforce arrow function return style based on line length
|
|
4182
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4192
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/arrow-return-style/documentation.md
|
|
4183
4193
|
*/
|
|
4184
4194
|
'flawless/arrow-return-style'?: Linter.RuleEntry<FlawlessArrowReturnStyle>;
|
|
4185
4195
|
/**
|
|
4186
4196
|
* Disallow shorthand boolean JSX attributes
|
|
4187
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4197
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/jsx-shorthand-boolean/documentation.md
|
|
4188
4198
|
*/
|
|
4189
4199
|
'flawless/jsx-shorthand-boolean'?: Linter.RuleEntry<[]>;
|
|
4190
4200
|
/**
|
|
4191
4201
|
* Enforce a consistent fragment form: the shorthand `<>...</>` or a named fragment
|
|
4192
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4202
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/jsx-shorthand-fragment/documentation.md
|
|
4193
4203
|
*/
|
|
4194
4204
|
'flawless/jsx-shorthand-fragment'?: Linter.RuleEntry<FlawlessJsxShorthandFragment>;
|
|
4195
4205
|
/**
|
|
4196
4206
|
* Enforce a maximum number of lines of code in a function
|
|
4197
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4207
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/max-lines-per-function/documentation.md
|
|
4198
4208
|
*/
|
|
4199
4209
|
'flawless/max-lines-per-function'?: Linter.RuleEntry<FlawlessMaxLinesPerFunction>;
|
|
4200
4210
|
/**
|
|
4201
4211
|
* Enforce naming conventions for everything across a codebase
|
|
4202
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4212
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/naming-convention/documentation.md
|
|
4203
4213
|
*/
|
|
4204
4214
|
'flawless/naming-convention'?: Linter.RuleEntry<FlawlessNamingConvention>;
|
|
4215
|
+
/**
|
|
4216
|
+
* Disallow conditional logic in tests
|
|
4217
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/no-conditional-in-test/documentation.md
|
|
4218
|
+
*/
|
|
4219
|
+
'flawless/no-conditional-in-test'?: Linter.RuleEntry<FlawlessNoConditionalInTest>;
|
|
4205
4220
|
/**
|
|
4206
4221
|
* Disallow anonymous arrow functions as export default declarations
|
|
4207
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4222
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/no-export-default-arrow/documentation.md
|
|
4208
4223
|
*/
|
|
4209
4224
|
'flawless/no-export-default-arrow'?: Linter.RuleEntry<[]>;
|
|
4210
4225
|
/**
|
|
4211
4226
|
* Disallow tsconfig options that redundantly re-set a value already provided by an extended config
|
|
4212
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4227
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/no-redundant-tsconfig-options/documentation.md
|
|
4213
4228
|
*/
|
|
4214
4229
|
'flawless/no-redundant-tsconfig-options'?: Linter.RuleEntry<[]>;
|
|
4215
4230
|
/**
|
|
4216
4231
|
* Disallow unnecessary usage of 'useCallback'
|
|
4217
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4232
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/no-unnecessary-use-callback/documentation.md
|
|
4218
4233
|
*/
|
|
4219
4234
|
'flawless/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
4220
4235
|
/**
|
|
4221
4236
|
* Disallow unnecessary usage of 'useMemo'
|
|
4222
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4237
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/no-unnecessary-use-memo/documentation.md
|
|
4223
4238
|
*/
|
|
4224
4239
|
'flawless/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
4225
4240
|
/**
|
|
4226
4241
|
* Enforce a blank line after `expect.assertions` and `expect.hasAssertions`
|
|
4227
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4242
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/padding-after-expect-assertions/documentation.md
|
|
4228
4243
|
*/
|
|
4229
4244
|
'flawless/padding-after-expect-assertions'?: Linter.RuleEntry<[]>;
|
|
4230
4245
|
/**
|
|
4231
4246
|
* Enforce destructuring assignment for component props
|
|
4232
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4247
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/prefer-destructuring-assignment/documentation.md
|
|
4233
4248
|
*/
|
|
4234
4249
|
'flawless/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
4250
|
+
/**
|
|
4251
|
+
* Prefer having the last statement in a test be an assertion
|
|
4252
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/prefer-ending-with-an-expect/documentation.md
|
|
4253
|
+
*/
|
|
4254
|
+
'flawless/prefer-ending-with-an-expect'?: Linter.RuleEntry<FlawlessPreferEndingWithAnExpect>;
|
|
4255
|
+
/**
|
|
4256
|
+
* Prefer `expect.assertions(<count>)` over `expect.hasAssertions()`
|
|
4257
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/prefer-expect-assertions-count/documentation.md
|
|
4258
|
+
*/
|
|
4259
|
+
'flawless/prefer-expect-assertions-count'?: Linter.RuleEntry<[]>;
|
|
4235
4260
|
/**
|
|
4236
4261
|
* Enforce destructuring parameters in the function signature
|
|
4237
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4262
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/prefer-parameter-destructuring/documentation.md
|
|
4238
4263
|
*/
|
|
4239
4264
|
'flawless/prefer-parameter-destructuring'?: Linter.RuleEntry<FlawlessPreferParameterDestructuring>;
|
|
4240
4265
|
/**
|
|
4241
4266
|
* Enforce that function component props are read-only
|
|
4242
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4267
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/prefer-read-only-props/documentation.md
|
|
4243
4268
|
*/
|
|
4244
4269
|
'flawless/prefer-read-only-props'?: Linter.RuleEntry<FlawlessPreferReadOnlyProps>;
|
|
4245
4270
|
/**
|
|
4246
4271
|
* Disallow impure calls such as `math.random` or `os.clock` during render
|
|
4247
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4272
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/purity/documentation.md
|
|
4248
4273
|
*/
|
|
4249
4274
|
'flawless/purity'?: Linter.RuleEntry<FlawlessPurity>;
|
|
4250
4275
|
/**
|
|
4251
4276
|
* Prefer named imports for React runtime values and the React namespace for React types
|
|
4252
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4277
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/react-namespace/documentation.md
|
|
4253
4278
|
*/
|
|
4254
4279
|
'flawless/react-namespace'?: Linter.RuleEntry<[]>;
|
|
4255
4280
|
/**
|
|
4256
4281
|
* Enforce a configured sort order for TOML keys and tables
|
|
4257
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4282
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/toml-sort-keys/documentation.md
|
|
4258
4283
|
*/
|
|
4259
4284
|
'flawless/toml-sort-keys'?: Linter.RuleEntry<FlawlessTomlSortKeys>;
|
|
4260
4285
|
/**
|
|
4261
4286
|
* Enforce blank lines around top-level YAML block collection keys
|
|
4262
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4287
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.4.0/src/rules/yaml-block-key-blank-lines/documentation.md
|
|
4263
4288
|
*/
|
|
4264
4289
|
'flawless/yaml-block-key-blank-lines'?: Linter.RuleEntry<[]>;
|
|
4265
4290
|
/**
|
|
@@ -4428,357 +4453,357 @@ interface RuleOptions {
|
|
|
4428
4453
|
'init-declarations'?: Linter.RuleEntry<InitDeclarations>;
|
|
4429
4454
|
/**
|
|
4430
4455
|
* Enforce `test` and `it` usage conventions
|
|
4431
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4456
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/consistent-test-it.md
|
|
4432
4457
|
*/
|
|
4433
4458
|
'jest/consistent-test-it'?: Linter.RuleEntry<JestConsistentTestIt>;
|
|
4434
4459
|
/**
|
|
4435
4460
|
* Enforce assertion to be made in a test body
|
|
4436
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4461
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/expect-expect.md
|
|
4437
4462
|
*/
|
|
4438
4463
|
'jest/expect-expect'?: Linter.RuleEntry<JestExpectExpect>;
|
|
4439
4464
|
/**
|
|
4440
4465
|
* Enforces a maximum number assertion calls in a test body
|
|
4441
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4466
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/max-expects.md
|
|
4442
4467
|
*/
|
|
4443
4468
|
'jest/max-expects'?: Linter.RuleEntry<JestMaxExpects>;
|
|
4444
4469
|
/**
|
|
4445
4470
|
* Enforces a maximum depth to nested describe calls
|
|
4446
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4471
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/max-nested-describe.md
|
|
4447
4472
|
*/
|
|
4448
4473
|
'jest/max-nested-describe'?: Linter.RuleEntry<JestMaxNestedDescribe>;
|
|
4449
4474
|
/**
|
|
4450
4475
|
* Disallow alias methods
|
|
4451
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4476
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-alias-methods.md
|
|
4452
4477
|
*/
|
|
4453
4478
|
'jest/no-alias-methods'?: Linter.RuleEntry<[]>;
|
|
4454
4479
|
/**
|
|
4455
4480
|
* Disallow commented out tests
|
|
4456
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4481
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-commented-out-tests.md
|
|
4457
4482
|
*/
|
|
4458
4483
|
'jest/no-commented-out-tests'?: Linter.RuleEntry<[]>;
|
|
4459
4484
|
/**
|
|
4460
4485
|
* Disallow calling `expect` conditionally
|
|
4461
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4486
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-conditional-expect.md
|
|
4462
4487
|
*/
|
|
4463
4488
|
'jest/no-conditional-expect'?: Linter.RuleEntry<[]>;
|
|
4464
4489
|
/**
|
|
4465
4490
|
* Disallow conditional logic in tests
|
|
4466
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4491
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-conditional-in-test.md
|
|
4467
4492
|
*/
|
|
4468
4493
|
'jest/no-conditional-in-test'?: Linter.RuleEntry<JestNoConditionalInTest>;
|
|
4469
4494
|
/**
|
|
4470
4495
|
* Disallow confusing usages of jest.setTimeout
|
|
4471
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4496
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-confusing-set-timeout.md
|
|
4472
4497
|
*/
|
|
4473
4498
|
'jest/no-confusing-set-timeout'?: Linter.RuleEntry<[]>;
|
|
4474
4499
|
/**
|
|
4475
4500
|
* Disallow use of deprecated functions
|
|
4476
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4501
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-deprecated-functions.md
|
|
4477
4502
|
*/
|
|
4478
4503
|
'jest/no-deprecated-functions'?: Linter.RuleEntry<[]>;
|
|
4479
4504
|
/**
|
|
4480
4505
|
* Disallow disabled tests
|
|
4481
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4506
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-disabled-tests.md
|
|
4482
4507
|
*/
|
|
4483
4508
|
'jest/no-disabled-tests'?: Linter.RuleEntry<[]>;
|
|
4484
4509
|
/**
|
|
4485
4510
|
* Disallow using a callback in asynchronous tests and hooks
|
|
4486
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4511
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-done-callback.md
|
|
4487
4512
|
*/
|
|
4488
4513
|
'jest/no-done-callback'?: Linter.RuleEntry<[]>;
|
|
4489
4514
|
/**
|
|
4490
4515
|
* Disallow duplicate setup and teardown hooks
|
|
4491
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4516
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-duplicate-hooks.md
|
|
4492
4517
|
*/
|
|
4493
4518
|
'jest/no-duplicate-hooks'?: Linter.RuleEntry<[]>;
|
|
4494
4519
|
/**
|
|
4495
4520
|
* Disallow using equality matchers on error types
|
|
4496
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4521
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-error-equal.md
|
|
4497
4522
|
*/
|
|
4498
4523
|
'jest/no-error-equal'?: Linter.RuleEntry<[]>;
|
|
4499
4524
|
/**
|
|
4500
4525
|
* Disallow using `exports` in files containing tests
|
|
4501
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4526
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-export.md
|
|
4502
4527
|
*/
|
|
4503
4528
|
'jest/no-export'?: Linter.RuleEntry<[]>;
|
|
4504
4529
|
/**
|
|
4505
4530
|
* Disallow focused tests
|
|
4506
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4531
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-focused-tests.md
|
|
4507
4532
|
*/
|
|
4508
4533
|
'jest/no-focused-tests'?: Linter.RuleEntry<[]>;
|
|
4509
4534
|
/**
|
|
4510
4535
|
* Disallow setup and teardown hooks
|
|
4511
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4536
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-hooks.md
|
|
4512
4537
|
*/
|
|
4513
4538
|
'jest/no-hooks'?: Linter.RuleEntry<JestNoHooks>;
|
|
4514
4539
|
/**
|
|
4515
4540
|
* Disallow identical titles
|
|
4516
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4541
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-identical-title.md
|
|
4517
4542
|
*/
|
|
4518
4543
|
'jest/no-identical-title'?: Linter.RuleEntry<[]>;
|
|
4519
4544
|
/**
|
|
4520
4545
|
* Disallow string interpolation inside snapshots
|
|
4521
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4546
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-interpolation-in-snapshots.md
|
|
4522
4547
|
*/
|
|
4523
4548
|
'jest/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>;
|
|
4524
4549
|
/**
|
|
4525
4550
|
* Disallow Jasmine globals
|
|
4526
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4551
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-jasmine-globals.md
|
|
4527
4552
|
*/
|
|
4528
4553
|
'jest/no-jasmine-globals'?: Linter.RuleEntry<[]>;
|
|
4529
4554
|
/**
|
|
4530
4555
|
* Disallow large snapshots
|
|
4531
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4556
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-large-snapshots.md
|
|
4532
4557
|
*/
|
|
4533
4558
|
'jest/no-large-snapshots'?: Linter.RuleEntry<JestNoLargeSnapshots>;
|
|
4534
4559
|
/**
|
|
4535
4560
|
* Disallow manually importing from `__mocks__`
|
|
4536
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4561
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-mocks-import.md
|
|
4537
4562
|
*/
|
|
4538
4563
|
'jest/no-mocks-import'?: Linter.RuleEntry<[]>;
|
|
4539
4564
|
/**
|
|
4540
4565
|
* Disallow specific `jest.` methods
|
|
4541
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4566
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-restricted-jest-methods.md
|
|
4542
4567
|
*/
|
|
4543
4568
|
'jest/no-restricted-jest-methods'?: Linter.RuleEntry<JestNoRestrictedJestMethods>;
|
|
4544
4569
|
/**
|
|
4545
4570
|
* Disallow specific matchers & modifiers
|
|
4546
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4571
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-restricted-matchers.md
|
|
4547
4572
|
*/
|
|
4548
4573
|
'jest/no-restricted-matchers'?: Linter.RuleEntry<JestNoRestrictedMatchers>;
|
|
4549
4574
|
/**
|
|
4550
4575
|
* Disallow using `expect` outside of `it` or `test` blocks
|
|
4551
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4576
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-standalone-expect.md
|
|
4552
4577
|
*/
|
|
4553
4578
|
'jest/no-standalone-expect'?: Linter.RuleEntry<JestNoStandaloneExpect>;
|
|
4554
4579
|
/**
|
|
4555
4580
|
* Require using `.only` and `.skip` over `f` and `x`
|
|
4556
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4581
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-test-prefixes.md
|
|
4557
4582
|
*/
|
|
4558
4583
|
'jest/no-test-prefixes'?: Linter.RuleEntry<[]>;
|
|
4559
4584
|
/**
|
|
4560
4585
|
* Disallow explicitly returning from tests
|
|
4561
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4586
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-test-return-statement.md
|
|
4562
4587
|
*/
|
|
4563
4588
|
'jest/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
4564
4589
|
/**
|
|
4565
4590
|
* Disallow unnecessary assertions based on types
|
|
4566
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4591
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-unnecessary-assertion.md
|
|
4567
4592
|
*/
|
|
4568
4593
|
'jest/no-unnecessary-assertion'?: Linter.RuleEntry<[]>;
|
|
4569
4594
|
/**
|
|
4570
4595
|
* Disallow unnecessary async function wrapper for expected promises
|
|
4571
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4596
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-unneeded-async-expect-function.md
|
|
4572
4597
|
*/
|
|
4573
4598
|
'jest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
4574
4599
|
/**
|
|
4575
4600
|
* Disallow using `jest.mock()` factories without an explicit type parameter
|
|
4576
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4601
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-untyped-mock-factory.md
|
|
4577
4602
|
*/
|
|
4578
4603
|
'jest/no-untyped-mock-factory'?: Linter.RuleEntry<[]>;
|
|
4579
4604
|
/**
|
|
4580
4605
|
* Enforce padding around `afterAll` blocks
|
|
4581
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4606
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-after-all-blocks.md
|
|
4582
4607
|
*/
|
|
4583
4608
|
'jest/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>;
|
|
4584
4609
|
/**
|
|
4585
4610
|
* Enforce padding around `afterEach` blocks
|
|
4586
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4611
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-after-each-blocks.md
|
|
4587
4612
|
*/
|
|
4588
4613
|
'jest/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>;
|
|
4589
4614
|
/**
|
|
4590
4615
|
* Enforce padding around Jest functions
|
|
4591
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4616
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-all.md
|
|
4592
4617
|
*/
|
|
4593
4618
|
'jest/padding-around-all'?: Linter.RuleEntry<[]>;
|
|
4594
4619
|
/**
|
|
4595
4620
|
* Enforce padding around `beforeAll` blocks
|
|
4596
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4621
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-before-all-blocks.md
|
|
4597
4622
|
*/
|
|
4598
4623
|
'jest/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>;
|
|
4599
4624
|
/**
|
|
4600
4625
|
* Enforce padding around `beforeEach` blocks
|
|
4601
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4626
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-before-each-blocks.md
|
|
4602
4627
|
*/
|
|
4603
4628
|
'jest/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>;
|
|
4604
4629
|
/**
|
|
4605
4630
|
* Enforce padding around `describe` blocks
|
|
4606
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4631
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-describe-blocks.md
|
|
4607
4632
|
*/
|
|
4608
4633
|
'jest/padding-around-describe-blocks'?: Linter.RuleEntry<[]>;
|
|
4609
4634
|
/**
|
|
4610
4635
|
* Enforce padding around `expect` groups
|
|
4611
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4636
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-expect-groups.md
|
|
4612
4637
|
*/
|
|
4613
4638
|
'jest/padding-around-expect-groups'?: Linter.RuleEntry<[]>;
|
|
4614
4639
|
/**
|
|
4615
4640
|
* Enforce padding around `test` and `it` blocks
|
|
4616
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4641
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-test-blocks.md
|
|
4617
4642
|
*/
|
|
4618
4643
|
'jest/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
|
|
4619
4644
|
/**
|
|
4620
4645
|
* Suggest using `toHaveBeenCalledWith()`
|
|
4621
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4646
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-called-with.md
|
|
4622
4647
|
*/
|
|
4623
4648
|
'jest/prefer-called-with'?: Linter.RuleEntry<[]>;
|
|
4624
4649
|
/**
|
|
4625
4650
|
* Suggest using the built-in comparison matchers
|
|
4626
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4651
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-comparison-matcher.md
|
|
4627
4652
|
*/
|
|
4628
4653
|
'jest/prefer-comparison-matcher'?: Linter.RuleEntry<[]>;
|
|
4629
4654
|
/**
|
|
4630
4655
|
* Prefer using `.each` rather than manual loops
|
|
4631
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4656
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-each.md
|
|
4632
4657
|
*/
|
|
4633
4658
|
'jest/prefer-each'?: Linter.RuleEntry<[]>;
|
|
4634
4659
|
/**
|
|
4635
4660
|
* Prefer having the last statement in a test be an assertion
|
|
4636
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4661
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-ending-with-an-expect.md
|
|
4637
4662
|
*/
|
|
4638
4663
|
'jest/prefer-ending-with-an-expect'?: Linter.RuleEntry<JestPreferEndingWithAnExpect>;
|
|
4639
4664
|
/**
|
|
4640
4665
|
* Suggest using the built-in equality matchers
|
|
4641
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4666
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-equality-matcher.md
|
|
4642
4667
|
*/
|
|
4643
4668
|
'jest/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
|
|
4644
4669
|
/**
|
|
4645
4670
|
* Suggest using `expect.assertions()` OR `expect.hasAssertions()`
|
|
4646
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4671
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-expect-assertions.md
|
|
4647
4672
|
*/
|
|
4648
4673
|
'jest/prefer-expect-assertions'?: Linter.RuleEntry<JestPreferExpectAssertions>;
|
|
4649
4674
|
/**
|
|
4650
4675
|
* Prefer `await expect(...).resolves` over `expect(await ...)` syntax
|
|
4651
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4676
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-expect-resolves.md
|
|
4652
4677
|
*/
|
|
4653
4678
|
'jest/prefer-expect-resolves'?: Linter.RuleEntry<[]>;
|
|
4654
4679
|
/**
|
|
4655
4680
|
* Prefer having hooks in a consistent order
|
|
4656
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4681
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-hooks-in-order.md
|
|
4657
4682
|
*/
|
|
4658
4683
|
'jest/prefer-hooks-in-order'?: Linter.RuleEntry<[]>;
|
|
4659
4684
|
/**
|
|
4660
4685
|
* Suggest having hooks before any test cases
|
|
4661
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4686
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-hooks-on-top.md
|
|
4662
4687
|
*/
|
|
4663
4688
|
'jest/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
|
|
4664
4689
|
/**
|
|
4665
4690
|
* Prefer importing Jest globals
|
|
4666
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4691
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-importing-jest-globals.md
|
|
4667
4692
|
*/
|
|
4668
4693
|
'jest/prefer-importing-jest-globals'?: Linter.RuleEntry<JestPreferImportingJestGlobals>;
|
|
4669
4694
|
/**
|
|
4670
4695
|
* Prefer `jest.mocked()` over `fn as jest.Mock`
|
|
4671
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4696
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-jest-mocked.md
|
|
4672
4697
|
*/
|
|
4673
4698
|
'jest/prefer-jest-mocked'?: Linter.RuleEntry<[]>;
|
|
4674
4699
|
/**
|
|
4675
4700
|
* Enforce lowercase test names
|
|
4676
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4701
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-lowercase-title.md
|
|
4677
4702
|
*/
|
|
4678
4703
|
'jest/prefer-lowercase-title'?: Linter.RuleEntry<JestPreferLowercaseTitle>;
|
|
4679
4704
|
/**
|
|
4680
4705
|
* Prefer mock resolved/rejected shorthands for promises
|
|
4681
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4706
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-mock-promise-shorthand.md
|
|
4682
4707
|
*/
|
|
4683
4708
|
'jest/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
4684
4709
|
/**
|
|
4685
4710
|
* Prefer mock return shorthands
|
|
4686
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4711
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-mock-return-shorthand.md
|
|
4687
4712
|
*/
|
|
4688
4713
|
'jest/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
4689
4714
|
/**
|
|
4690
4715
|
* Prefer including a hint with external snapshots
|
|
4691
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4716
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-snapshot-hint.md
|
|
4692
4717
|
*/
|
|
4693
4718
|
'jest/prefer-snapshot-hint'?: Linter.RuleEntry<JestPreferSnapshotHint>;
|
|
4694
4719
|
/**
|
|
4695
4720
|
* Suggest using `jest.spyOn()`
|
|
4696
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4721
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-spy-on.md
|
|
4697
4722
|
*/
|
|
4698
4723
|
'jest/prefer-spy-on'?: Linter.RuleEntry<[]>;
|
|
4699
4724
|
/**
|
|
4700
4725
|
* Suggest using `toStrictEqual()`
|
|
4701
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4726
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-strict-equal.md
|
|
4702
4727
|
*/
|
|
4703
4728
|
'jest/prefer-strict-equal'?: Linter.RuleEntry<[]>;
|
|
4704
4729
|
/**
|
|
4705
4730
|
* Suggest using `toBe()` for primitive literals
|
|
4706
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4731
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-to-be.md
|
|
4707
4732
|
*/
|
|
4708
4733
|
'jest/prefer-to-be'?: Linter.RuleEntry<[]>;
|
|
4709
4734
|
/**
|
|
4710
4735
|
* Suggest using `toContain()`
|
|
4711
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4736
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-to-contain.md
|
|
4712
4737
|
*/
|
|
4713
4738
|
'jest/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
4714
4739
|
/**
|
|
4715
4740
|
* Suggest using `toHaveBeenCalled`
|
|
4716
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4741
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-to-have-been-called.md
|
|
4717
4742
|
*/
|
|
4718
4743
|
'jest/prefer-to-have-been-called'?: Linter.RuleEntry<[]>;
|
|
4719
4744
|
/**
|
|
4720
4745
|
* Suggest using `toHaveBeenCalledTimes()`
|
|
4721
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4746
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-to-have-been-called-times.md
|
|
4722
4747
|
*/
|
|
4723
4748
|
'jest/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
4724
4749
|
/**
|
|
4725
4750
|
* Suggest using `toHaveLength()`
|
|
4726
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4751
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-to-have-length.md
|
|
4727
4752
|
*/
|
|
4728
4753
|
'jest/prefer-to-have-length'?: Linter.RuleEntry<[]>;
|
|
4729
4754
|
/**
|
|
4730
4755
|
* Suggest using `test.todo`
|
|
4731
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4756
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-todo.md
|
|
4732
4757
|
*/
|
|
4733
4758
|
'jest/prefer-todo'?: Linter.RuleEntry<[]>;
|
|
4734
4759
|
/**
|
|
4735
4760
|
* Require setup and teardown code to be within a hook
|
|
4736
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4761
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/require-hook.md
|
|
4737
4762
|
*/
|
|
4738
4763
|
'jest/require-hook'?: Linter.RuleEntry<JestRequireHook>;
|
|
4739
4764
|
/**
|
|
4740
4765
|
* Require a message for `toThrow()`
|
|
4741
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4766
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/require-to-throw-message.md
|
|
4742
4767
|
*/
|
|
4743
4768
|
'jest/require-to-throw-message'?: Linter.RuleEntry<[]>;
|
|
4744
4769
|
/**
|
|
4745
4770
|
* Require test cases and hooks to be inside a `describe` block
|
|
4746
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4771
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/require-top-level-describe.md
|
|
4747
4772
|
*/
|
|
4748
4773
|
'jest/require-top-level-describe'?: Linter.RuleEntry<JestRequireTopLevelDescribe>;
|
|
4749
4774
|
/**
|
|
4750
4775
|
* Enforce unbound methods are called with their expected scope
|
|
4751
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4776
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/unbound-method.md
|
|
4752
4777
|
*/
|
|
4753
4778
|
'jest/unbound-method'?: Linter.RuleEntry<JestUnboundMethod>;
|
|
4754
4779
|
/**
|
|
4755
4780
|
* Enforce valid `describe()` callback
|
|
4756
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4781
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/valid-describe-callback.md
|
|
4757
4782
|
*/
|
|
4758
4783
|
'jest/valid-describe-callback'?: Linter.RuleEntry<[]>;
|
|
4759
4784
|
/**
|
|
4760
4785
|
* Enforce valid `expect()` usage
|
|
4761
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4786
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/valid-expect.md
|
|
4762
4787
|
*/
|
|
4763
4788
|
'jest/valid-expect'?: Linter.RuleEntry<JestValidExpect>;
|
|
4764
4789
|
/**
|
|
4765
4790
|
* Require promises that have expectations in their chain to be valid
|
|
4766
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4791
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/valid-expect-in-promise.md
|
|
4767
4792
|
*/
|
|
4768
4793
|
'jest/valid-expect-in-promise'?: Linter.RuleEntry<[]>;
|
|
4769
4794
|
/**
|
|
4770
4795
|
* Require that `resolve` and `reject` modifiers are present (and only) for promise-like types
|
|
4771
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4796
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/valid-expect-with-promise.md
|
|
4772
4797
|
*/
|
|
4773
4798
|
'jest/valid-expect-with-promise'?: Linter.RuleEntry<[]>;
|
|
4774
4799
|
/**
|
|
4775
4800
|
* Disallow mocking of non-existing module paths
|
|
4776
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4801
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/valid-mock-module-path.md
|
|
4777
4802
|
*/
|
|
4778
4803
|
'jest/valid-mock-module-path'?: Linter.RuleEntry<JestValidMockModulePath>;
|
|
4779
4804
|
/**
|
|
4780
4805
|
* Enforce valid titles
|
|
4781
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
4806
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/valid-title.md
|
|
4782
4807
|
*/
|
|
4783
4808
|
'jest/valid-title'?: Linter.RuleEntry<JestValidTitle>;
|
|
4784
4809
|
/**
|
|
@@ -7333,6 +7358,11 @@ interface RuleOptions {
|
|
|
7333
7358
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
|
|
7334
7359
|
*/
|
|
7335
7360
|
'pnpm/yaml-enforce-settings'?: Linter.RuleEntry<PnpmYamlEnforceSettings>;
|
|
7361
|
+
/**
|
|
7362
|
+
* Disallow the anonymous `catalog:` in `pnpm-workspace.yaml` in favor of named catalogs
|
|
7363
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-anonymous-catalog.test.ts
|
|
7364
|
+
*/
|
|
7365
|
+
'pnpm/yaml-no-anonymous-catalog'?: Linter.RuleEntry<[]>;
|
|
7336
7366
|
/**
|
|
7337
7367
|
* Disallow duplicate catalog items in `pnpm-workspace.yaml`
|
|
7338
7368
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
|
|
@@ -10789,6 +10819,7 @@ interface RuleOptions {
|
|
|
10789
10819
|
/**
|
|
10790
10820
|
* Disallow specified modules when loaded by `import`
|
|
10791
10821
|
* @see https://typescript-eslint.io/rules/no-restricted-imports
|
|
10822
|
+
* @deprecated
|
|
10792
10823
|
*/
|
|
10793
10824
|
'ts/no-restricted-imports'?: Linter.RuleEntry<TsNoRestrictedImports>;
|
|
10794
10825
|
/**
|
|
@@ -14180,6 +14211,16 @@ interface _FlawlessNamingConvention_MatchRegexConfig {
|
|
|
14180
14211
|
match: boolean;
|
|
14181
14212
|
regex: string;
|
|
14182
14213
|
}
|
|
14214
|
+
// ----- flawless/no-conditional-in-test -----
|
|
14215
|
+
type FlawlessNoConditionalInTest = [] | [{
|
|
14216
|
+
additionalTestBlockFunctions?: string[];
|
|
14217
|
+
allowOptionalChaining?: boolean;
|
|
14218
|
+
}];
|
|
14219
|
+
// ----- flawless/prefer-ending-with-an-expect -----
|
|
14220
|
+
type FlawlessPreferEndingWithAnExpect = [] | [{
|
|
14221
|
+
additionalTestBlockFunctions?: string[];
|
|
14222
|
+
assertFunctionNames?: string[];
|
|
14223
|
+
}];
|
|
14183
14224
|
// ----- flawless/prefer-parameter-destructuring -----
|
|
14184
14225
|
type FlawlessPreferParameterDestructuring = [] | [{
|
|
14185
14226
|
allowSideEffectReordering?: boolean;
|
|
@@ -14717,6 +14758,7 @@ type JsdocNoUndefinedTypes = [] | [{
|
|
|
14717
14758
|
type JsdocNormalizeSeeLinks = [] | [{
|
|
14718
14759
|
canonicalForm?: ("pipe" | "prefix");
|
|
14719
14760
|
enableFixer?: boolean;
|
|
14761
|
+
wrapBareUrls?: boolean;
|
|
14720
14762
|
}];
|
|
14721
14763
|
// ----- jsdoc/prefer-import-tag -----
|
|
14722
14764
|
type JsdocPreferImportTag = [] | [{
|
|
@@ -28737,357 +28779,357 @@ interface OxlintRenamedJsPluginRuleOptions {
|
|
|
28737
28779
|
'import-js/prefer-default-export'?: RuleOptions['import/prefer-default-export'];
|
|
28738
28780
|
/**
|
|
28739
28781
|
* Enforce `test` and `it` usage conventions
|
|
28740
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28782
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/consistent-test-it.md
|
|
28741
28783
|
*/
|
|
28742
28784
|
'jest-js/consistent-test-it'?: RuleOptions['jest/consistent-test-it'];
|
|
28743
28785
|
/**
|
|
28744
28786
|
* Enforce assertion to be made in a test body
|
|
28745
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28787
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/expect-expect.md
|
|
28746
28788
|
*/
|
|
28747
28789
|
'jest-js/expect-expect'?: RuleOptions['jest/expect-expect'];
|
|
28748
28790
|
/**
|
|
28749
28791
|
* Enforces a maximum number assertion calls in a test body
|
|
28750
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28792
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/max-expects.md
|
|
28751
28793
|
*/
|
|
28752
28794
|
'jest-js/max-expects'?: RuleOptions['jest/max-expects'];
|
|
28753
28795
|
/**
|
|
28754
28796
|
* Enforces a maximum depth to nested describe calls
|
|
28755
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28797
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/max-nested-describe.md
|
|
28756
28798
|
*/
|
|
28757
28799
|
'jest-js/max-nested-describe'?: RuleOptions['jest/max-nested-describe'];
|
|
28758
28800
|
/**
|
|
28759
28801
|
* Disallow alias methods
|
|
28760
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28802
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-alias-methods.md
|
|
28761
28803
|
*/
|
|
28762
28804
|
'jest-js/no-alias-methods'?: RuleOptions['jest/no-alias-methods'];
|
|
28763
28805
|
/**
|
|
28764
28806
|
* Disallow commented out tests
|
|
28765
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28807
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-commented-out-tests.md
|
|
28766
28808
|
*/
|
|
28767
28809
|
'jest-js/no-commented-out-tests'?: RuleOptions['jest/no-commented-out-tests'];
|
|
28768
28810
|
/**
|
|
28769
28811
|
* Disallow calling `expect` conditionally
|
|
28770
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28812
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-conditional-expect.md
|
|
28771
28813
|
*/
|
|
28772
28814
|
'jest-js/no-conditional-expect'?: RuleOptions['jest/no-conditional-expect'];
|
|
28773
28815
|
/**
|
|
28774
28816
|
* Disallow conditional logic in tests
|
|
28775
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28817
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-conditional-in-test.md
|
|
28776
28818
|
*/
|
|
28777
28819
|
'jest-js/no-conditional-in-test'?: RuleOptions['jest/no-conditional-in-test'];
|
|
28778
28820
|
/**
|
|
28779
28821
|
* Disallow confusing usages of jest.setTimeout
|
|
28780
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28822
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-confusing-set-timeout.md
|
|
28781
28823
|
*/
|
|
28782
28824
|
'jest-js/no-confusing-set-timeout'?: RuleOptions['jest/no-confusing-set-timeout'];
|
|
28783
28825
|
/**
|
|
28784
28826
|
* Disallow use of deprecated functions
|
|
28785
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28827
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-deprecated-functions.md
|
|
28786
28828
|
*/
|
|
28787
28829
|
'jest-js/no-deprecated-functions'?: RuleOptions['jest/no-deprecated-functions'];
|
|
28788
28830
|
/**
|
|
28789
28831
|
* Disallow disabled tests
|
|
28790
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28832
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-disabled-tests.md
|
|
28791
28833
|
*/
|
|
28792
28834
|
'jest-js/no-disabled-tests'?: RuleOptions['jest/no-disabled-tests'];
|
|
28793
28835
|
/**
|
|
28794
28836
|
* Disallow using a callback in asynchronous tests and hooks
|
|
28795
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28837
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-done-callback.md
|
|
28796
28838
|
*/
|
|
28797
28839
|
'jest-js/no-done-callback'?: RuleOptions['jest/no-done-callback'];
|
|
28798
28840
|
/**
|
|
28799
28841
|
* Disallow duplicate setup and teardown hooks
|
|
28800
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28842
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-duplicate-hooks.md
|
|
28801
28843
|
*/
|
|
28802
28844
|
'jest-js/no-duplicate-hooks'?: RuleOptions['jest/no-duplicate-hooks'];
|
|
28803
28845
|
/**
|
|
28804
28846
|
* Disallow using equality matchers on error types
|
|
28805
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28847
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-error-equal.md
|
|
28806
28848
|
*/
|
|
28807
28849
|
'jest-js/no-error-equal'?: RuleOptions['jest/no-error-equal'];
|
|
28808
28850
|
/**
|
|
28809
28851
|
* Disallow using `exports` in files containing tests
|
|
28810
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28852
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-export.md
|
|
28811
28853
|
*/
|
|
28812
28854
|
'jest-js/no-export'?: RuleOptions['jest/no-export'];
|
|
28813
28855
|
/**
|
|
28814
28856
|
* Disallow focused tests
|
|
28815
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28857
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-focused-tests.md
|
|
28816
28858
|
*/
|
|
28817
28859
|
'jest-js/no-focused-tests'?: RuleOptions['jest/no-focused-tests'];
|
|
28818
28860
|
/**
|
|
28819
28861
|
* Disallow setup and teardown hooks
|
|
28820
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28862
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-hooks.md
|
|
28821
28863
|
*/
|
|
28822
28864
|
'jest-js/no-hooks'?: RuleOptions['jest/no-hooks'];
|
|
28823
28865
|
/**
|
|
28824
28866
|
* Disallow identical titles
|
|
28825
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28867
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-identical-title.md
|
|
28826
28868
|
*/
|
|
28827
28869
|
'jest-js/no-identical-title'?: RuleOptions['jest/no-identical-title'];
|
|
28828
28870
|
/**
|
|
28829
28871
|
* Disallow string interpolation inside snapshots
|
|
28830
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28872
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-interpolation-in-snapshots.md
|
|
28831
28873
|
*/
|
|
28832
28874
|
'jest-js/no-interpolation-in-snapshots'?: RuleOptions['jest/no-interpolation-in-snapshots'];
|
|
28833
28875
|
/**
|
|
28834
28876
|
* Disallow Jasmine globals
|
|
28835
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28877
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-jasmine-globals.md
|
|
28836
28878
|
*/
|
|
28837
28879
|
'jest-js/no-jasmine-globals'?: RuleOptions['jest/no-jasmine-globals'];
|
|
28838
28880
|
/**
|
|
28839
28881
|
* Disallow large snapshots
|
|
28840
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28882
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-large-snapshots.md
|
|
28841
28883
|
*/
|
|
28842
28884
|
'jest-js/no-large-snapshots'?: RuleOptions['jest/no-large-snapshots'];
|
|
28843
28885
|
/**
|
|
28844
28886
|
* Disallow manually importing from `__mocks__`
|
|
28845
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28887
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-mocks-import.md
|
|
28846
28888
|
*/
|
|
28847
28889
|
'jest-js/no-mocks-import'?: RuleOptions['jest/no-mocks-import'];
|
|
28848
28890
|
/**
|
|
28849
28891
|
* Disallow specific `jest.` methods
|
|
28850
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28892
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-restricted-jest-methods.md
|
|
28851
28893
|
*/
|
|
28852
28894
|
'jest-js/no-restricted-jest-methods'?: RuleOptions['jest/no-restricted-jest-methods'];
|
|
28853
28895
|
/**
|
|
28854
28896
|
* Disallow specific matchers & modifiers
|
|
28855
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28897
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-restricted-matchers.md
|
|
28856
28898
|
*/
|
|
28857
28899
|
'jest-js/no-restricted-matchers'?: RuleOptions['jest/no-restricted-matchers'];
|
|
28858
28900
|
/**
|
|
28859
28901
|
* Disallow using `expect` outside of `it` or `test` blocks
|
|
28860
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28902
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-standalone-expect.md
|
|
28861
28903
|
*/
|
|
28862
28904
|
'jest-js/no-standalone-expect'?: RuleOptions['jest/no-standalone-expect'];
|
|
28863
28905
|
/**
|
|
28864
28906
|
* Require using `.only` and `.skip` over `f` and `x`
|
|
28865
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28907
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-test-prefixes.md
|
|
28866
28908
|
*/
|
|
28867
28909
|
'jest-js/no-test-prefixes'?: RuleOptions['jest/no-test-prefixes'];
|
|
28868
28910
|
/**
|
|
28869
28911
|
* Disallow explicitly returning from tests
|
|
28870
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28912
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-test-return-statement.md
|
|
28871
28913
|
*/
|
|
28872
28914
|
'jest-js/no-test-return-statement'?: RuleOptions['jest/no-test-return-statement'];
|
|
28873
28915
|
/**
|
|
28874
28916
|
* Disallow unnecessary assertions based on types
|
|
28875
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28917
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-unnecessary-assertion.md
|
|
28876
28918
|
*/
|
|
28877
28919
|
'jest-js/no-unnecessary-assertion'?: RuleOptions['jest/no-unnecessary-assertion'];
|
|
28878
28920
|
/**
|
|
28879
28921
|
* Disallow unnecessary async function wrapper for expected promises
|
|
28880
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28922
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-unneeded-async-expect-function.md
|
|
28881
28923
|
*/
|
|
28882
28924
|
'jest-js/no-unneeded-async-expect-function'?: RuleOptions['jest/no-unneeded-async-expect-function'];
|
|
28883
28925
|
/**
|
|
28884
28926
|
* Disallow using `jest.mock()` factories without an explicit type parameter
|
|
28885
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28927
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/no-untyped-mock-factory.md
|
|
28886
28928
|
*/
|
|
28887
28929
|
'jest-js/no-untyped-mock-factory'?: RuleOptions['jest/no-untyped-mock-factory'];
|
|
28888
28930
|
/**
|
|
28889
28931
|
* Enforce padding around `afterAll` blocks
|
|
28890
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28932
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-after-all-blocks.md
|
|
28891
28933
|
*/
|
|
28892
28934
|
'jest-js/padding-around-after-all-blocks'?: RuleOptions['jest/padding-around-after-all-blocks'];
|
|
28893
28935
|
/**
|
|
28894
28936
|
* Enforce padding around `afterEach` blocks
|
|
28895
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28937
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-after-each-blocks.md
|
|
28896
28938
|
*/
|
|
28897
28939
|
'jest-js/padding-around-after-each-blocks'?: RuleOptions['jest/padding-around-after-each-blocks'];
|
|
28898
28940
|
/**
|
|
28899
28941
|
* Enforce padding around Jest functions
|
|
28900
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28942
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-all.md
|
|
28901
28943
|
*/
|
|
28902
28944
|
'jest-js/padding-around-all'?: RuleOptions['jest/padding-around-all'];
|
|
28903
28945
|
/**
|
|
28904
28946
|
* Enforce padding around `beforeAll` blocks
|
|
28905
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28947
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-before-all-blocks.md
|
|
28906
28948
|
*/
|
|
28907
28949
|
'jest-js/padding-around-before-all-blocks'?: RuleOptions['jest/padding-around-before-all-blocks'];
|
|
28908
28950
|
/**
|
|
28909
28951
|
* Enforce padding around `beforeEach` blocks
|
|
28910
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28952
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-before-each-blocks.md
|
|
28911
28953
|
*/
|
|
28912
28954
|
'jest-js/padding-around-before-each-blocks'?: RuleOptions['jest/padding-around-before-each-blocks'];
|
|
28913
28955
|
/**
|
|
28914
28956
|
* Enforce padding around `describe` blocks
|
|
28915
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28957
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-describe-blocks.md
|
|
28916
28958
|
*/
|
|
28917
28959
|
'jest-js/padding-around-describe-blocks'?: RuleOptions['jest/padding-around-describe-blocks'];
|
|
28918
28960
|
/**
|
|
28919
28961
|
* Enforce padding around `expect` groups
|
|
28920
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28962
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-expect-groups.md
|
|
28921
28963
|
*/
|
|
28922
28964
|
'jest-js/padding-around-expect-groups'?: RuleOptions['jest/padding-around-expect-groups'];
|
|
28923
28965
|
/**
|
|
28924
28966
|
* Enforce padding around `test` and `it` blocks
|
|
28925
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28967
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/padding-around-test-blocks.md
|
|
28926
28968
|
*/
|
|
28927
28969
|
'jest-js/padding-around-test-blocks'?: RuleOptions['jest/padding-around-test-blocks'];
|
|
28928
28970
|
/**
|
|
28929
28971
|
* Suggest using `toHaveBeenCalledWith()`
|
|
28930
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28972
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-called-with.md
|
|
28931
28973
|
*/
|
|
28932
28974
|
'jest-js/prefer-called-with'?: RuleOptions['jest/prefer-called-with'];
|
|
28933
28975
|
/**
|
|
28934
28976
|
* Suggest using the built-in comparison matchers
|
|
28935
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28977
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-comparison-matcher.md
|
|
28936
28978
|
*/
|
|
28937
28979
|
'jest-js/prefer-comparison-matcher'?: RuleOptions['jest/prefer-comparison-matcher'];
|
|
28938
28980
|
/**
|
|
28939
28981
|
* Prefer using `.each` rather than manual loops
|
|
28940
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28982
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-each.md
|
|
28941
28983
|
*/
|
|
28942
28984
|
'jest-js/prefer-each'?: RuleOptions['jest/prefer-each'];
|
|
28943
28985
|
/**
|
|
28944
28986
|
* Prefer having the last statement in a test be an assertion
|
|
28945
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28987
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-ending-with-an-expect.md
|
|
28946
28988
|
*/
|
|
28947
28989
|
'jest-js/prefer-ending-with-an-expect'?: RuleOptions['jest/prefer-ending-with-an-expect'];
|
|
28948
28990
|
/**
|
|
28949
28991
|
* Suggest using the built-in equality matchers
|
|
28950
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28992
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-equality-matcher.md
|
|
28951
28993
|
*/
|
|
28952
28994
|
'jest-js/prefer-equality-matcher'?: RuleOptions['jest/prefer-equality-matcher'];
|
|
28953
28995
|
/**
|
|
28954
28996
|
* Suggest using `expect.assertions()` OR `expect.hasAssertions()`
|
|
28955
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
28997
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-expect-assertions.md
|
|
28956
28998
|
*/
|
|
28957
28999
|
'jest-js/prefer-expect-assertions'?: RuleOptions['jest/prefer-expect-assertions'];
|
|
28958
29000
|
/**
|
|
28959
29001
|
* Prefer `await expect(...).resolves` over `expect(await ...)` syntax
|
|
28960
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29002
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-expect-resolves.md
|
|
28961
29003
|
*/
|
|
28962
29004
|
'jest-js/prefer-expect-resolves'?: RuleOptions['jest/prefer-expect-resolves'];
|
|
28963
29005
|
/**
|
|
28964
29006
|
* Prefer having hooks in a consistent order
|
|
28965
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29007
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-hooks-in-order.md
|
|
28966
29008
|
*/
|
|
28967
29009
|
'jest-js/prefer-hooks-in-order'?: RuleOptions['jest/prefer-hooks-in-order'];
|
|
28968
29010
|
/**
|
|
28969
29011
|
* Suggest having hooks before any test cases
|
|
28970
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29012
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-hooks-on-top.md
|
|
28971
29013
|
*/
|
|
28972
29014
|
'jest-js/prefer-hooks-on-top'?: RuleOptions['jest/prefer-hooks-on-top'];
|
|
28973
29015
|
/**
|
|
28974
29016
|
* Prefer importing Jest globals
|
|
28975
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29017
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-importing-jest-globals.md
|
|
28976
29018
|
*/
|
|
28977
29019
|
'jest-js/prefer-importing-jest-globals'?: RuleOptions['jest/prefer-importing-jest-globals'];
|
|
28978
29020
|
/**
|
|
28979
29021
|
* Prefer `jest.mocked()` over `fn as jest.Mock`
|
|
28980
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29022
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-jest-mocked.md
|
|
28981
29023
|
*/
|
|
28982
29024
|
'jest-js/prefer-jest-mocked'?: RuleOptions['jest/prefer-jest-mocked'];
|
|
28983
29025
|
/**
|
|
28984
29026
|
* Enforce lowercase test names
|
|
28985
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29027
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-lowercase-title.md
|
|
28986
29028
|
*/
|
|
28987
29029
|
'jest-js/prefer-lowercase-title'?: RuleOptions['jest/prefer-lowercase-title'];
|
|
28988
29030
|
/**
|
|
28989
29031
|
* Prefer mock resolved/rejected shorthands for promises
|
|
28990
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29032
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-mock-promise-shorthand.md
|
|
28991
29033
|
*/
|
|
28992
29034
|
'jest-js/prefer-mock-promise-shorthand'?: RuleOptions['jest/prefer-mock-promise-shorthand'];
|
|
28993
29035
|
/**
|
|
28994
29036
|
* Prefer mock return shorthands
|
|
28995
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29037
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-mock-return-shorthand.md
|
|
28996
29038
|
*/
|
|
28997
29039
|
'jest-js/prefer-mock-return-shorthand'?: RuleOptions['jest/prefer-mock-return-shorthand'];
|
|
28998
29040
|
/**
|
|
28999
29041
|
* Prefer including a hint with external snapshots
|
|
29000
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29042
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-snapshot-hint.md
|
|
29001
29043
|
*/
|
|
29002
29044
|
'jest-js/prefer-snapshot-hint'?: RuleOptions['jest/prefer-snapshot-hint'];
|
|
29003
29045
|
/**
|
|
29004
29046
|
* Suggest using `jest.spyOn()`
|
|
29005
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29047
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-spy-on.md
|
|
29006
29048
|
*/
|
|
29007
29049
|
'jest-js/prefer-spy-on'?: RuleOptions['jest/prefer-spy-on'];
|
|
29008
29050
|
/**
|
|
29009
29051
|
* Suggest using `toStrictEqual()`
|
|
29010
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29052
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-strict-equal.md
|
|
29011
29053
|
*/
|
|
29012
29054
|
'jest-js/prefer-strict-equal'?: RuleOptions['jest/prefer-strict-equal'];
|
|
29013
29055
|
/**
|
|
29014
29056
|
* Suggest using `toBe()` for primitive literals
|
|
29015
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29057
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-to-be.md
|
|
29016
29058
|
*/
|
|
29017
29059
|
'jest-js/prefer-to-be'?: RuleOptions['jest/prefer-to-be'];
|
|
29018
29060
|
/**
|
|
29019
29061
|
* Suggest using `toContain()`
|
|
29020
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29062
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-to-contain.md
|
|
29021
29063
|
*/
|
|
29022
29064
|
'jest-js/prefer-to-contain'?: RuleOptions['jest/prefer-to-contain'];
|
|
29023
29065
|
/**
|
|
29024
29066
|
* Suggest using `toHaveBeenCalled`
|
|
29025
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29067
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-to-have-been-called.md
|
|
29026
29068
|
*/
|
|
29027
29069
|
'jest-js/prefer-to-have-been-called'?: RuleOptions['jest/prefer-to-have-been-called'];
|
|
29028
29070
|
/**
|
|
29029
29071
|
* Suggest using `toHaveBeenCalledTimes()`
|
|
29030
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29072
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-to-have-been-called-times.md
|
|
29031
29073
|
*/
|
|
29032
29074
|
'jest-js/prefer-to-have-been-called-times'?: RuleOptions['jest/prefer-to-have-been-called-times'];
|
|
29033
29075
|
/**
|
|
29034
29076
|
* Suggest using `toHaveLength()`
|
|
29035
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29077
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-to-have-length.md
|
|
29036
29078
|
*/
|
|
29037
29079
|
'jest-js/prefer-to-have-length'?: RuleOptions['jest/prefer-to-have-length'];
|
|
29038
29080
|
/**
|
|
29039
29081
|
* Suggest using `test.todo`
|
|
29040
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29082
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/prefer-todo.md
|
|
29041
29083
|
*/
|
|
29042
29084
|
'jest-js/prefer-todo'?: RuleOptions['jest/prefer-todo'];
|
|
29043
29085
|
/**
|
|
29044
29086
|
* Require setup and teardown code to be within a hook
|
|
29045
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29087
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/require-hook.md
|
|
29046
29088
|
*/
|
|
29047
29089
|
'jest-js/require-hook'?: RuleOptions['jest/require-hook'];
|
|
29048
29090
|
/**
|
|
29049
29091
|
* Require a message for `toThrow()`
|
|
29050
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29092
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/require-to-throw-message.md
|
|
29051
29093
|
*/
|
|
29052
29094
|
'jest-js/require-to-throw-message'?: RuleOptions['jest/require-to-throw-message'];
|
|
29053
29095
|
/**
|
|
29054
29096
|
* Require test cases and hooks to be inside a `describe` block
|
|
29055
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29097
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/require-top-level-describe.md
|
|
29056
29098
|
*/
|
|
29057
29099
|
'jest-js/require-top-level-describe'?: RuleOptions['jest/require-top-level-describe'];
|
|
29058
29100
|
/**
|
|
29059
29101
|
* Enforce unbound methods are called with their expected scope
|
|
29060
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29102
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/unbound-method.md
|
|
29061
29103
|
*/
|
|
29062
29104
|
'jest-js/unbound-method'?: RuleOptions['jest/unbound-method'];
|
|
29063
29105
|
/**
|
|
29064
29106
|
* Enforce valid `describe()` callback
|
|
29065
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29107
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/valid-describe-callback.md
|
|
29066
29108
|
*/
|
|
29067
29109
|
'jest-js/valid-describe-callback'?: RuleOptions['jest/valid-describe-callback'];
|
|
29068
29110
|
/**
|
|
29069
29111
|
* Enforce valid `expect()` usage
|
|
29070
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29112
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/valid-expect.md
|
|
29071
29113
|
*/
|
|
29072
29114
|
'jest-js/valid-expect'?: RuleOptions['jest/valid-expect'];
|
|
29073
29115
|
/**
|
|
29074
29116
|
* Require promises that have expectations in their chain to be valid
|
|
29075
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29117
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/valid-expect-in-promise.md
|
|
29076
29118
|
*/
|
|
29077
29119
|
'jest-js/valid-expect-in-promise'?: RuleOptions['jest/valid-expect-in-promise'];
|
|
29078
29120
|
/**
|
|
29079
29121
|
* Require that `resolve` and `reject` modifiers are present (and only) for promise-like types
|
|
29080
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29122
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/valid-expect-with-promise.md
|
|
29081
29123
|
*/
|
|
29082
29124
|
'jest-js/valid-expect-with-promise'?: RuleOptions['jest/valid-expect-with-promise'];
|
|
29083
29125
|
/**
|
|
29084
29126
|
* Disallow mocking of non-existing module paths
|
|
29085
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29127
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/valid-mock-module-path.md
|
|
29086
29128
|
*/
|
|
29087
29129
|
'jest-js/valid-mock-module-path'?: RuleOptions['jest/valid-mock-module-path'];
|
|
29088
29130
|
/**
|
|
29089
29131
|
* Enforce valid titles
|
|
29090
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.
|
|
29132
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.15.5/docs/rules/valid-title.md
|
|
29091
29133
|
*/
|
|
29092
29134
|
'jest-js/valid-title'?: RuleOptions['jest/valid-title'];
|
|
29093
29135
|
/**
|