sonarjs/prefer-read-only-props
eslint-plugin-sonarjs
SuggestionRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/prefer-read-only-props": "error",
},
},
];No code example for this rule
The linters' documentation does not include one we could extract.
sonarjs/prefer-read-only-props
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/prefer-read-only-props": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
"RegExp.exec()" should be preferred over "String.match()"
Native APIs should be preferred over Lodash and Underscore.js methods
Return of boolean expressions should not be wrapped into an "if-then-else" statement
Native APIs should be preferred over jQuery utility methods