sonarjs/class-name
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/class-name": "error",
},
},
];class my_class {...}class MyClass {...}Examples from the ESLint documentation.
sonarjs/class-name
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/class-name": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Chai assertions should have only one reason to succeed
Dynamic code execution should not use user-controlled data
Function call arguments should not start on new lines
Comma and logical OR operators should not be used in switch cases
Variables should be used in the blocks where they are declared
Regular expression quantifiers and character classes should be used concisely