sonarjs/updated-const-var
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/updated-const-var": "error",
},
},
];const pi = "yes, please";
pi = 3.14; // NoncompliantThe documentation shows no correct example for this rule.
Examples from the ESLint documentation.
sonarjs/updated-const-var
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/updated-const-var": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Server hostnames should be verified during SSL/TLS connections
Loop counters should not be assigned within the loop body
Server certificates should be verified during SSL/TLS connections
Names of regular expressions named groups should be used
Vi.mock should be declared at module scope