Skip to content

Commit c5a2736

Browse files
committed
Remove vitest/require-mock-type-parameters
1 parent cecc863 commit c5a2736

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

docs/vitest.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Config for projects using **Vitest** for testing.
3434
);
3535
```
3636

37-
## 📏 Rules (45)
37+
## 📏 Rules (44)
3838

3939
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
4040
@@ -52,7 +52,7 @@ Config for projects using **Vitest** for testing.
5252
| [![vitest](./icons/material/vitest.png)](https://github.com/veritem/eslint-plugin-vitest#readme) | [valid-expect-in-promise](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect-in-promise.md)<br />require promises that have expectations in their chain to be valid | | | |
5353
| [![vitest](./icons/material/vitest.png)](https://github.com/veritem/eslint-plugin-vitest#readme) | [valid-title](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md)<br />enforce valid titles | | 🔧 | |
5454

55-
### ⚠️ Warnings (36)
55+
### ⚠️ Warnings (35)
5656

5757
| Plugin | Rule | Options | Autofix | Overrides |
5858
| :----------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----: | :-------: |
@@ -89,6 +89,5 @@ Config for projects using **Vitest** for testing.
8989
| [![vitest](./icons/material/vitest.png)](https://github.com/veritem/eslint-plugin-vitest#readme) | [prefer-todo](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md)<br />enforce using `test.todo` | | 🔧 | |
9090
| [![vitest](./icons/material/vitest.png)](https://github.com/veritem/eslint-plugin-vitest#readme) | [prefer-vi-mocked](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md)<br />require `vi.mocked()` over `fn as Mock` | | 🔧 | |
9191
| [![vitest](./icons/material/vitest.png)](https://github.com/veritem/eslint-plugin-vitest#readme) | [require-hook](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md)<br />require setup and teardown to be within a hook | | | |
92-
| [![vitest](./icons/material/vitest.png)](https://github.com/veritem/eslint-plugin-vitest#readme) | [require-mock-type-parameters](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md)<br />enforce using type parameters with vitest mock functions | | 🔧 | |
9392
| [![vitest](./icons/material/vitest.png)](https://github.com/veritem/eslint-plugin-vitest#readme) | [require-to-throw-message](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md)<br />require toThrow() to be called with an error message | | | |
9493
| [![vitest](./icons/material/vitest.png)](https://github.com/veritem/eslint-plugin-vitest#readme) | [require-top-level-describe](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md)<br />enforce that all tests are in a top-level describe | | | |

src/configs/vitest.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ export default tseslint.config({
6565
'vitest/prefer-vi-mocked': 'warn',
6666
}),
6767
'vitest/require-hook': 'warn',
68-
// from v1.1.27 onwards
69-
...('require-mock-type-parameters' in vitest.rules && {
70-
'vitest/require-mock-type-parameters': 'warn',
71-
}),
7268
'vitest/require-to-throw-message': 'warn',
7369
'vitest/require-top-level-describe': 'warn',
7470
// from v1.1.9 onwards

0 commit comments

Comments
 (0)