sonarjs/bitwise-operators
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/bitwise-operators": "error",
},
},
];Bitwise operators should not be used in boolean contexts
if (a & b) { ... } // Noncompliant; & used in errorif (a && b) { ... }Examples from the ESLint documentation.
sonarjs/bitwise-operators
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/bitwise-operators": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Variables should be used in the blocks where they are declared
Amazon SNS topics should be encrypted at rest
Function call arguments should not start on new lines
SageMaker notebook instances should be encrypted at rest
Chai assertions should have only one reason to succeed