sonarjs/no-hardcoded-secrets
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/no-hardcoded-secrets": "error",
},
},
];No code example for this rule
The linters' documentation does not include one we could extract.
sonarjs/no-hardcoded-secrets
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-hardcoded-secrets": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
React's useState hook should not be used directly in the render function or body of a component
"if/else if" chains and "switch" cases should not have the same condition
Boolean expressions should not be gratuitous
Identical expressions should not be used on both sides of a binary operator