sonarjs/hooks-before-test-cases
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/hooks-before-test-cases": "error",
},
},
];Lifecycle hooks should not be interleaved with test cases or nested suites
No code example for this rule
The linters' documentation does not include one we could extract.
sonarjs/hooks-before-test-cases
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/hooks-before-test-cases": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
"in" should not be used with primitive types
Functions should be called consistently with or without "new"
Generators should explicitly "yield" a value
"indexOf" checks should not be for positive numbers