sonarjs/no-floating-point-equality
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/no-floating-point-equality": "error",
},
},
];Floating point numbers should not be tested for equality
No code example for this rule
The linters' documentation does not include one we could extract.
sonarjs/no-floating-point-equality
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-floating-point-equality": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Forced browser interactions should not bypass actionability checks
Switch cases should end with an unconditional "break" statement
Function calls should not pass extra arguments
Special identifiers should not be bound or assigned