@isentinel/eslint-config 4.7.11 → 4.8.1

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/index.d.mts CHANGED
@@ -5921,322 +5921,357 @@ interface RuleOptions {
5921
5921
  'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>;
5922
5922
  /**
5923
5923
  * Enforce `test` and `it` usage conventions
5924
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/consistent-test-it.md
5924
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/consistent-test-it.md
5925
5925
  */
5926
5926
  'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>;
5927
5927
  /**
5928
5928
  * Enforce assertion to be made in a test body
5929
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/expect-expect.md
5929
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/expect-expect.md
5930
5930
  */
5931
5931
  'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>;
5932
5932
  /**
5933
5933
  * Enforces a maximum number assertion calls in a test body
5934
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/max-expects.md
5934
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/max-expects.md
5935
5935
  */
5936
5936
  'test/max-expects'?: Linter.RuleEntry<TestMaxExpects>;
5937
5937
  /**
5938
5938
  * Enforces a maximum depth to nested describe calls
5939
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/max-nested-describe.md
5939
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/max-nested-describe.md
5940
5940
  */
5941
5941
  'test/max-nested-describe'?: Linter.RuleEntry<TestMaxNestedDescribe>;
5942
5942
  /**
5943
5943
  * Disallow alias methods
5944
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-alias-methods.md
5944
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-alias-methods.md
5945
5945
  */
5946
5946
  'test/no-alias-methods'?: Linter.RuleEntry<[]>;
5947
5947
  /**
5948
5948
  * Disallow commented out tests
5949
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-commented-out-tests.md
5949
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-commented-out-tests.md
5950
5950
  */
5951
5951
  'test/no-commented-out-tests'?: Linter.RuleEntry<[]>;
5952
5952
  /**
5953
5953
  * Disallow calling `expect` conditionally
5954
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-conditional-expect.md
5954
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-conditional-expect.md
5955
5955
  */
5956
5956
  'test/no-conditional-expect'?: Linter.RuleEntry<[]>;
5957
5957
  /**
5958
5958
  * Disallow conditional logic in tests
5959
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-conditional-in-test.md
5959
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-conditional-in-test.md
5960
5960
  */
5961
5961
  'test/no-conditional-in-test'?: Linter.RuleEntry<[]>;
5962
5962
  /**
5963
5963
  * Disallow confusing usages of jest.setTimeout
5964
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-confusing-set-timeout.md
5964
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-confusing-set-timeout.md
5965
5965
  */
5966
5966
  'test/no-confusing-set-timeout'?: Linter.RuleEntry<[]>;
5967
5967
  /**
5968
5968
  * Disallow use of deprecated functions
5969
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-deprecated-functions.md
5969
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-deprecated-functions.md
5970
5970
  */
5971
5971
  'test/no-deprecated-functions'?: Linter.RuleEntry<[]>;
5972
5972
  /**
5973
5973
  * Disallow disabled tests
5974
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-disabled-tests.md
5974
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-disabled-tests.md
5975
5975
  */
5976
5976
  'test/no-disabled-tests'?: Linter.RuleEntry<[]>;
5977
5977
  /**
5978
5978
  * Disallow using a callback in asynchronous tests and hooks
5979
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-done-callback.md
5979
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-done-callback.md
5980
5980
  */
5981
5981
  'test/no-done-callback'?: Linter.RuleEntry<[]>;
5982
5982
  /**
5983
5983
  * Disallow duplicate setup and teardown hooks
5984
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-duplicate-hooks.md
5984
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-duplicate-hooks.md
5985
5985
  */
5986
5986
  'test/no-duplicate-hooks'?: Linter.RuleEntry<[]>;
5987
+ /**
5988
+ * Disallow using equality matchers on error types
5989
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-error-equal.md
5990
+ */
5991
+ 'test/no-error-equal'?: Linter.RuleEntry<[]>;
5987
5992
  /**
5988
5993
  * Disallow using `exports` in files containing tests
5989
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-export.md
5994
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-export.md
5990
5995
  */
5991
5996
  'test/no-export'?: Linter.RuleEntry<[]>;
5992
5997
  /**
5993
5998
  * Disallow focused tests
5994
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-focused-tests.md
5999
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-focused-tests.md
5995
6000
  */
5996
6001
  'test/no-focused-tests'?: Linter.RuleEntry<[]>;
5997
6002
  /**
5998
6003
  * Disallow setup and teardown hooks
5999
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-hooks.md
6004
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-hooks.md
6000
6005
  */
6001
6006
  'test/no-hooks'?: Linter.RuleEntry<TestNoHooks>;
6002
6007
  /**
6003
6008
  * Disallow identical titles
6004
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-identical-title.md
6009
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-identical-title.md
6005
6010
  */
6006
6011
  'test/no-identical-title'?: Linter.RuleEntry<[]>;
6007
6012
  /**
6008
6013
  * Disallow string interpolation inside snapshots
6009
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-interpolation-in-snapshots.md
6014
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-interpolation-in-snapshots.md
6010
6015
  */
6011
6016
  'test/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>;
6012
6017
  /**
6013
6018
  * Disallow Jasmine globals
6014
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-jasmine-globals.md
6019
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-jasmine-globals.md
6015
6020
  */
6016
6021
  'test/no-jasmine-globals'?: Linter.RuleEntry<[]>;
6017
6022
  /**
6018
6023
  * Disallow large snapshots
6019
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-large-snapshots.md
6024
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-large-snapshots.md
6020
6025
  */
6021
6026
  'test/no-large-snapshots'?: Linter.RuleEntry<TestNoLargeSnapshots>;
6022
6027
  /**
6023
6028
  * Disallow manually importing from `__mocks__`
6024
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-mocks-import.md
6029
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-mocks-import.md
6025
6030
  */
6026
6031
  'test/no-mocks-import'?: Linter.RuleEntry<[]>;
6027
6032
  /**
6028
6033
  * Disallow specific `jest.` methods
6029
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-restricted-jest-methods.md
6034
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-restricted-jest-methods.md
6030
6035
  */
6031
6036
  'test/no-restricted-jest-methods'?: Linter.RuleEntry<TestNoRestrictedJestMethods>;
6032
6037
  /**
6033
6038
  * Disallow specific matchers & modifiers
6034
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-restricted-matchers.md
6039
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-restricted-matchers.md
6035
6040
  */
6036
6041
  'test/no-restricted-matchers'?: Linter.RuleEntry<TestNoRestrictedMatchers>;
6037
6042
  /**
6038
6043
  * Disallow using `expect` outside of `it` or `test` blocks
6039
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-standalone-expect.md
6044
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-standalone-expect.md
6040
6045
  */
6041
6046
  'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>;
6042
6047
  /**
6043
6048
  * Require using `.only` and `.skip` over `f` and `x`
6044
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-test-prefixes.md
6049
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-test-prefixes.md
6045
6050
  */
6046
6051
  'test/no-test-prefixes'?: Linter.RuleEntry<[]>;
6047
6052
  /**
6048
6053
  * Disallow explicitly returning from tests
6049
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-test-return-statement.md
6054
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-test-return-statement.md
6050
6055
  */
6051
6056
  'test/no-test-return-statement'?: Linter.RuleEntry<[]>;
6057
+ /**
6058
+ * Disallow unnecessary assertions based on types
6059
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-unnecessary-assertion.md
6060
+ */
6061
+ 'test/no-unnecessary-assertion'?: Linter.RuleEntry<[]>;
6062
+ /**
6063
+ * Disallow unnecessary async function wrapper for expected promises
6064
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-unneeded-async-expect-function.md
6065
+ */
6066
+ 'test/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
6052
6067
  /**
6053
6068
  * Disallow using `jest.mock()` factories without an explicit type parameter
6054
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-untyped-mock-factory.md
6069
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/no-untyped-mock-factory.md
6055
6070
  */
6056
6071
  'test/no-untyped-mock-factory'?: Linter.RuleEntry<[]>;
6057
6072
  /**
6058
6073
  * Enforce padding around `afterAll` blocks
6059
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-after-all-blocks.md
6074
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/padding-around-after-all-blocks.md
6060
6075
  */
6061
6076
  'test/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>;
6062
6077
  /**
6063
6078
  * Enforce padding around `afterEach` blocks
6064
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-after-each-blocks.md
6079
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/padding-around-after-each-blocks.md
6065
6080
  */
6066
6081
  'test/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>;
6067
6082
  /**
6068
6083
  * Enforce padding around Jest functions
6069
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-all.md
6084
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/padding-around-all.md
6070
6085
  */
6071
6086
  'test/padding-around-all'?: Linter.RuleEntry<[]>;
6072
6087
  /**
6073
6088
  * Enforce padding around `beforeAll` blocks
6074
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-before-all-blocks.md
6089
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/padding-around-before-all-blocks.md
6075
6090
  */
6076
6091
  'test/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>;
6077
6092
  /**
6078
6093
  * Enforce padding around `beforeEach` blocks
6079
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-before-each-blocks.md
6094
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/padding-around-before-each-blocks.md
6080
6095
  */
6081
6096
  'test/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>;
6082
6097
  /**
6083
6098
  * Enforce padding around `describe` blocks
6084
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-describe-blocks.md
6099
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/padding-around-describe-blocks.md
6085
6100
  */
6086
6101
  'test/padding-around-describe-blocks'?: Linter.RuleEntry<[]>;
6087
6102
  /**
6088
6103
  * Enforce padding around `expect` groups
6089
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-expect-groups.md
6104
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/padding-around-expect-groups.md
6090
6105
  */
6091
6106
  'test/padding-around-expect-groups'?: Linter.RuleEntry<[]>;
6092
6107
  /**
6093
6108
  * Enforce padding around `test` and `it` blocks
6094
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-test-blocks.md
6109
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/padding-around-test-blocks.md
6095
6110
  */
6096
6111
  'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
6097
6112
  /**
6098
- * Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`
6099
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-called-with.md
6113
+ * Suggest using `toHaveBeenCalledWith()`
6114
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-called-with.md
6100
6115
  */
6101
6116
  'test/prefer-called-with'?: Linter.RuleEntry<[]>;
6102
6117
  /**
6103
6118
  * Suggest using the built-in comparison matchers
6104
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-comparison-matcher.md
6119
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-comparison-matcher.md
6105
6120
  */
6106
6121
  'test/prefer-comparison-matcher'?: Linter.RuleEntry<[]>;
6107
6122
  /**
6108
6123
  * Prefer using `.each` rather than manual loops
6109
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-each.md
6124
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-each.md
6110
6125
  */
6111
6126
  'test/prefer-each'?: Linter.RuleEntry<[]>;
6112
6127
  /**
6113
6128
  * Prefer having the last statement in a test be an assertion
6114
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-ending-with-an-expect.md
6129
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-ending-with-an-expect.md
6115
6130
  */
6116
6131
  'test/prefer-ending-with-an-expect'?: Linter.RuleEntry<TestPreferEndingWithAnExpect>;
6117
6132
  /**
6118
6133
  * Suggest using the built-in equality matchers
6119
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-equality-matcher.md
6134
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-equality-matcher.md
6120
6135
  */
6121
6136
  'test/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
6122
6137
  /**
6123
6138
  * Suggest using `expect.assertions()` OR `expect.hasAssertions()`
6124
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-expect-assertions.md
6139
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-expect-assertions.md
6125
6140
  */
6126
6141
  'test/prefer-expect-assertions'?: Linter.RuleEntry<TestPreferExpectAssertions>;
6127
6142
  /**
6128
6143
  * Prefer `await expect(...).resolves` over `expect(await ...)` syntax
6129
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-expect-resolves.md
6144
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-expect-resolves.md
6130
6145
  */
6131
6146
  'test/prefer-expect-resolves'?: Linter.RuleEntry<[]>;
6132
6147
  /**
6133
6148
  * Prefer having hooks in a consistent order
6134
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-hooks-in-order.md
6149
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-hooks-in-order.md
6135
6150
  */
6136
6151
  'test/prefer-hooks-in-order'?: Linter.RuleEntry<[]>;
6137
6152
  /**
6138
6153
  * Suggest having hooks before any test cases
6139
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-hooks-on-top.md
6154
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-hooks-on-top.md
6140
6155
  */
6141
6156
  'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
6142
6157
  /**
6143
6158
  * Prefer importing Jest globals
6144
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-importing-jest-globals.md
6159
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-importing-jest-globals.md
6145
6160
  */
6146
6161
  'test/prefer-importing-jest-globals'?: Linter.RuleEntry<TestPreferImportingJestGlobals>;
6147
6162
  /**
6148
6163
  * Prefer `jest.mocked()` over `fn as jest.Mock`
6149
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-jest-mocked.md
6164
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-jest-mocked.md
6150
6165
  */
6151
6166
  'test/prefer-jest-mocked'?: Linter.RuleEntry<[]>;
6152
6167
  /**
6153
6168
  * Enforce lowercase test names
6154
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-lowercase-title.md
6169
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-lowercase-title.md
6155
6170
  */
6156
6171
  'test/prefer-lowercase-title'?: Linter.RuleEntry<TestPreferLowercaseTitle>;
6157
6172
  /**
6158
6173
  * Prefer mock resolved/rejected shorthands for promises
6159
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-mock-promise-shorthand.md
6174
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-mock-promise-shorthand.md
6160
6175
  */
6161
6176
  'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
6177
+ /**
6178
+ * Prefer mock return shorthands
6179
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-mock-return-shorthand.md
6180
+ */
6181
+ 'test/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
6162
6182
  /**
6163
6183
  * Prefer including a hint with external snapshots
6164
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-snapshot-hint.md
6184
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-snapshot-hint.md
6165
6185
  */
6166
6186
  'test/prefer-snapshot-hint'?: Linter.RuleEntry<TestPreferSnapshotHint>;
6167
6187
  /**
6168
6188
  * Suggest using `jest.spyOn()`
6169
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-spy-on.md
6189
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-spy-on.md
6170
6190
  */
6171
6191
  'test/prefer-spy-on'?: Linter.RuleEntry<[]>;
6172
6192
  /**
6173
6193
  * Suggest using `toStrictEqual()`
6174
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-strict-equal.md
6194
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-strict-equal.md
6175
6195
  */
6176
6196
  'test/prefer-strict-equal'?: Linter.RuleEntry<[]>;
6177
6197
  /**
6178
6198
  * Suggest using `toBe()` for primitive literals
6179
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-to-be.md
6199
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-to-be.md
6180
6200
  */
6181
6201
  'test/prefer-to-be'?: Linter.RuleEntry<[]>;
6182
6202
  /**
6183
6203
  * Suggest using `toContain()`
6184
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-to-contain.md
6204
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-to-contain.md
6185
6205
  */
6186
6206
  'test/prefer-to-contain'?: Linter.RuleEntry<[]>;
6207
+ /**
6208
+ * Suggest using `toHaveBeenCalled`
6209
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-to-have-been-called.md
6210
+ */
6211
+ 'test/prefer-to-have-been-called'?: Linter.RuleEntry<[]>;
6212
+ /**
6213
+ * Suggest using `toHaveBeenCalledTimes()`
6214
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-to-have-been-called-times.md
6215
+ */
6216
+ 'test/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
6187
6217
  /**
6188
6218
  * Suggest using `toHaveLength()`
6189
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-to-have-length.md
6219
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-to-have-length.md
6190
6220
  */
6191
6221
  'test/prefer-to-have-length'?: Linter.RuleEntry<[]>;
6192
6222
  /**
6193
6223
  * Suggest using `test.todo`
6194
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-todo.md
6224
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/prefer-todo.md
6195
6225
  */
6196
6226
  'test/prefer-todo'?: Linter.RuleEntry<[]>;
6197
6227
  /**
6198
6228
  * Require setup and teardown code to be within a hook
6199
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/require-hook.md
6229
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/require-hook.md
6200
6230
  */
6201
6231
  'test/require-hook'?: Linter.RuleEntry<TestRequireHook>;
6202
6232
  /**
6203
6233
  * Require a message for `toThrow()`
6204
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/require-to-throw-message.md
6234
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/require-to-throw-message.md
6205
6235
  */
6206
6236
  'test/require-to-throw-message'?: Linter.RuleEntry<[]>;
6207
6237
  /**
6208
6238
  * Require test cases and hooks to be inside a `describe` block
6209
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/require-top-level-describe.md
6239
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/require-top-level-describe.md
6210
6240
  */
6211
6241
  'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>;
6212
6242
  /**
6213
6243
  * Enforce unbound methods are called with their expected scope
6214
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/unbound-method.md
6244
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/unbound-method.md
6215
6245
  */
6216
6246
  'test/unbound-method'?: Linter.RuleEntry<TestUnboundMethod>;
6217
6247
  /**
6218
6248
  * Enforce valid `describe()` callback
6219
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-describe-callback.md
6249
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/valid-describe-callback.md
6220
6250
  */
6221
6251
  'test/valid-describe-callback'?: Linter.RuleEntry<[]>;
6222
6252
  /**
6223
6253
  * Enforce valid `expect()` usage
6224
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-expect.md
6254
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/valid-expect.md
6225
6255
  */
6226
6256
  'test/valid-expect'?: Linter.RuleEntry<TestValidExpect>;
6227
6257
  /**
6228
6258
  * Require promises that have expectations in their chain to be valid
6229
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-expect-in-promise.md
6259
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/valid-expect-in-promise.md
6230
6260
  */
6231
6261
  'test/valid-expect-in-promise'?: Linter.RuleEntry<[]>;
6262
+ /**
6263
+ * Require that `resolve` and `reject` modifiers are present (and only) for promise-like types
6264
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/valid-expect-with-promise.md
6265
+ */
6266
+ 'test/valid-expect-with-promise'?: Linter.RuleEntry<[]>;
6232
6267
  /**
6233
6268
  * Disallow mocking of non-existing module paths
6234
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-mock-module-path.md
6269
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/valid-mock-module-path.md
6235
6270
  */
6236
6271
  'test/valid-mock-module-path'?: Linter.RuleEntry<TestValidMockModulePath>;
6237
6272
  /**
6238
6273
  * Enforce valid titles
6239
- * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-title.md
6274
+ * @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.13.0/docs/rules/valid-title.md
6240
6275
  */
6241
6276
  'test/valid-title'?: Linter.RuleEntry<TestValidTitle>;
6242
6277
  /**
@@ -15053,9 +15088,12 @@ type TestValidTitle = [] | [{
15053
15088
  ignoreTypeOfDescribeName?: boolean;
15054
15089
  ignoreTypeOfTestName?: boolean;
15055
15090
  disallowedWords?: string[];
15056
- [k: string]: (string | [string] | [string, string] | {
15091
+ mustMatch?: string | [string] | [string, string] | {
15057
15092
  [k: string]: (string | [string] | [string, string]) | undefined;
15058
- });
15093
+ };
15094
+ mustNotMatch?: string | [string] | [string, string] | {
15095
+ [k: string]: (string | [string] | [string, string]) | undefined;
15096
+ };
15059
15097
  }];
15060
15098
  // ----- toml/array-bracket-newline -----
15061
15099
  type TomlArrayBracketNewline = [] | [(("always" | "never" | "consistent") | {
@@ -16492,9 +16530,12 @@ type VitestValidTitle = [] | [{
16492
16530
  ignoreTypeOfDescribeName?: boolean;
16493
16531
  allowArguments?: boolean;
16494
16532
  disallowedWords?: string[];
16495
- [k: string]: (string | [string] | [string, string] | {
16533
+ mustMatch?: string | [string] | [string, string] | {
16496
16534
  [k: string]: (string | [string] | [string, string]) | undefined;
16497
- });
16535
+ };
16536
+ mustNotMatch?: string | [string] | [string, string] | {
16537
+ [k: string]: (string | [string] | [string, string]) | undefined;
16538
+ };
16498
16539
  }];
16499
16540
  // ----- wrap-iife -----
16500
16541
  type WrapIife = [] | [("outside" | "inside" | "any")] | [("outside" | "inside" | "any"), {
package/dist/index.mjs CHANGED
@@ -6262,11 +6262,11 @@ async function stylistic(options = {}, prettierOptions = {}) {
6262
6262
  let pluginTest;
6263
6263
  let pluginVitest;
6264
6264
  async function test(options = {}) {
6265
- const { files = GLOB_TESTS, isInEditor = false, jest = false, overrides = {}, roblox: roblox$1 = true, stylistic: stylistic$1 = true, type = "game", vitest = false } = options;
6265
+ const { files = GLOB_TESTS, isInEditor = false, jest = false, overrides = {}, roblox: isRoblox = true, stylistic: stylistic$1 = true, type = "game", vitest = false } = options;
6266
6266
  const vitestOptions = typeof vitest === "object" ? vitest : {};
6267
6267
  const vitestEnabled = vitest === true || typeof vitest === "object";
6268
- const enableJest = jest || !vitestEnabled && (type === "game" || roblox$1);
6269
- const enableVitest = vitestEnabled || !jest && type === "package" && !roblox$1;
6268
+ const enableJest = jest || !vitestEnabled && (type === "game" || isRoblox);
6269
+ const enableVitest = vitestEnabled || !jest && type === "package" && !isRoblox;
6270
6270
  const configs = [];
6271
6271
  if (enableJest) {
6272
6272
  await ensurePackages(["eslint-plugin-jest"]);
@@ -6290,6 +6290,7 @@ async function test(options = {}) {
6290
6290
  "test/no-disabled-tests": isInEditor ? "off" : "error",
6291
6291
  "test/no-done-callback": "error",
6292
6292
  "test/no-duplicate-hooks": "error",
6293
+ "test/no-error-equal": isRoblox ? "off" : "error",
6293
6294
  "test/no-export": "error",
6294
6295
  "test/no-focused-tests": isInEditor ? "off" : "error",
6295
6296
  "test/no-hooks": "error",
@@ -6297,6 +6298,8 @@ async function test(options = {}) {
6297
6298
  "test/no-standalone-expect": "error",
6298
6299
  "test/no-test-prefixes": "error",
6299
6300
  "test/no-test-return-statement": "error",
6301
+ "test/no-unnecessary-assertion": "error",
6302
+ "test/no-unneeded-async-expect-function": "error",
6300
6303
  "test/no-untyped-mock-factory": "error",
6301
6304
  "test/prefer-called-with": "warn",
6302
6305
  "test/prefer-comparison-matcher": "warn",
@@ -6307,10 +6310,13 @@ async function test(options = {}) {
6307
6310
  "test/prefer-hooks-in-order": "warn",
6308
6311
  "test/prefer-lowercase-title": "warn",
6309
6312
  "test/prefer-mock-promise-shorthand": "error",
6313
+ "test/prefer-mock-return-shorthand": "error",
6310
6314
  "test/prefer-spy-on": "warn",
6311
6315
  "test/prefer-strict-equal": "error",
6312
6316
  "test/prefer-to-be": "error",
6313
6317
  "test/prefer-to-contain": "error",
6318
+ "test/prefer-to-have-been-called": "error",
6319
+ "test/prefer-to-have-been-called-times": "error",
6314
6320
  "test/prefer-to-have-length": "error",
6315
6321
  "test/prefer-todo": "warn",
6316
6322
  "test/require-hook": "error",
@@ -6318,9 +6324,13 @@ async function test(options = {}) {
6318
6324
  "test/require-top-level-describe": "error",
6319
6325
  "test/unbound-method": "error",
6320
6326
  "test/valid-describe-callback": "error",
6321
- "test/valid-expect": roblox$1 ? "off" : "error",
6327
+ "test/valid-expect": isRoblox ? "off" : "error",
6322
6328
  "test/valid-expect-in-promise": "error",
6323
- "test/valid-title": ["error", { mustMatch: { it: ["^should", "Test title must start with \"should\""] } }],
6329
+ "test/valid-expect-with-promise": "error",
6330
+ "test/valid-title": ["error", {
6331
+ ignoreTypeOfDescribeName: true,
6332
+ mustMatch: { it: ["^should", "Test title must start with \"should\""] }
6333
+ }],
6324
6334
  ...stylistic$1 !== false ? { "test/padding-around-all": "warn" } : {},
6325
6335
  ...overrides
6326
6336
  },
@@ -6405,7 +6415,10 @@ async function test(options = {}) {
6405
6415
  "vitest/valid-describe-callback": "error",
6406
6416
  "vitest/valid-expect": "error",
6407
6417
  "vitest/valid-expect-in-promise": "error",
6408
- "vitest/valid-title": ["error", { mustMatch: { it: ["^should", "Test title must start with \"should\""] } }],
6418
+ "vitest/valid-title": ["error", {
6419
+ ignoreTypeOfDescribeName: true,
6420
+ mustMatch: { it: ["^should", "Test title must start with \"should\""] }
6421
+ }],
6409
6422
  ...stylistic$1 !== false ? { "vitest/padding-around-all": "warn" } : {},
6410
6423
  ...overrides
6411
6424
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isentinel/eslint-config",
3
- "version": "4.7.11",
3
+ "version": "4.8.1",
4
4
  "description": "iSentinel's ESLint config",
5
5
  "keywords": [
6
6
  "eslint-config",
@@ -109,7 +109,7 @@
109
109
  "eslint": "9.39.2",
110
110
  "eslint-plugin-erasable-syntax-only": "0.4.0",
111
111
  "eslint-plugin-eslint-plugin": "7.2.0",
112
- "eslint-plugin-jest": "29.2.1",
112
+ "eslint-plugin-jest": "29.13.0",
113
113
  "eslint-plugin-n": "17.23.2",
114
114
  "eslint-plugin-react-hooks": "7.0.1",
115
115
  "eslint-plugin-react-naming-convention": "2.3.13",
@@ -127,7 +127,7 @@
127
127
  "type-fest": "5.3.1",
128
128
  "typescript": "5.9.3",
129
129
  "unplugin-unused": "0.5.6",
130
- "@isentinel/eslint-config": "4.7.11"
130
+ "@isentinel/eslint-config": "4.8.1"
131
131
  },
132
132
  "peerDependencies": {
133
133
  "@vitest/eslint-plugin": "^1.0.0",