sonarjs/void-use
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/void-use": "error",
},
},
];void doSomething();doSomething();Examples from the ESLint documentation.
sonarjs/void-use
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/void-use": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Vi.mock should be declared at module scope
Web application technologies should not disclose version information
Loop counters should not be assigned within the loop body
XML parsers should not be vulnerable to XXE attacks