unicorn/id-match
eslint-plugin-unicorn
No autofix
eslint.config.js
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/id-match": "error",
},
},
];const foo$ = 1;const foo = 1;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/id-match
eslint-plugin-unicorn
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/id-match": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Require identifiers to match a specified regular expression
Enforce a consistent style for optional loop sources.
Enforce a consistent return style for multiline arrow function bodies.