sonarjs/function-name
eslint-plugin-sonarjs
No autofix
eslint.config.js
export default [
{
rules: {
"sonarjs/function-name": "error",
},
},
];Function and method names should comply with a naming convention
function DoSomething(){...} // Noncompliantfunction doSomething(){...}Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
sonarjs/function-name
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/function-name": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Default export names and file names should match