vitest/prefer-todo
@vitest/eslint-plugin
Safe autofix
eslint.config.js
import vitest from "@vitest/eslint-plugin";
export default [
{
plugins: { vitest },
rules: {
"vitest/prefer-todo": "error",
},
},
];No code example for this rule
The linters' documentation does not include one we could extract.
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/prefer-todo
@vitest/eslint-plugin
import vitest from "@vitest/eslint-plugin";
export default [
{
plugins: { vitest },
rules: {
"vitest/prefer-todo": "error",
},
},
];vitest/prefer-todo
vitest plugin · style
{
"plugins": [
"vitest"
],
"rules": {
"vitest/prefer-todo": "error"
}
}Biome does not have this rule.
Ensure that every expect.poll call is awaited