vitest/warn-todo
@vitest/eslint-plugin
No autofix
eslint.config.js
import vitest from "@vitest/eslint-plugin";
export default [
{
plugins: { vitest },
rules: {
"vitest/warn-todo": "error",
},
},
];describe.todo('foo', () => {})
it.todo('foo', () => {})
test.todo('foo', () => {})describe([])('foo', () => {})
it([])('foo', () => {})
test([])('foo', () => {})Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
vitest/warn-todo
@vitest/eslint-plugin
import vitest from "@vitest/eslint-plugin";
export default [
{
plugins: { vitest },
rules: {
"vitest/warn-todo": "error",
},
},
];vitest/warn-todo
vitest plugin · correctness
{
"plugins": [
"vitest"
],
"rules": {
"vitest/warn-todo": "error"
}
}Biome does not have this rule.
Require toThrow() to be called with an error message
Enforce using type parameters with vitest mock functions
Ensure that every expect.poll call is awaited