unicorn/no-keyword-prefix
eslint-plugin-unicorn
No autofix
eslint.config.js
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/no-keyword-prefix": "error",
},
},
];const newFoo = 'foo';const classFoo = 'foo';const foo = 'foo';const _newFoo = 'foo';const new_foo = 'foo';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.
unicorn/no-keyword-prefix
eslint-plugin-unicorn
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/no-keyword-prefix": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow references to missing local resources.
Disallow repeating the same wrapper at every call to a function.