sonarjs/no-mixed-completion-style
eslint-plugin-sonarjs
No autofix
eslint.config.js
export default [
{
rules: {
"sonarjs/no-mixed-completion-style": "error",
},
},
];Test and hook callbacks should use a single completion style
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.
sonarjs/no-mixed-completion-style
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-mixed-completion-style": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Increment (++) and decrement (--) operators should not be used in a method call or mixed with other operators in an expression