unicorn/filename-case
eslint-plugin-unicorn
No autofix
eslint.config.js
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/filename-case": "error",
},
},
];No code example for this rule
The linters' documentation does not include one we could extract.
unicorn/filename-case
eslint-plugin-unicorn
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/filename-case": "error",
},
},
];unicorn/filename-case
unicorn plugin · style
{
"rules": {
"unicorn/filename-case": "error"
}
}style/useFilenamingConvention
style · since 1.5.0
{
"linter": {
"rules": {
"style": {
"useFilenamingConvention": "error"
}
}
}
}Enforce using the digits argument with Number#toFixed().
Disallow negated conditions.
Prefer String#trimStart() / String#trimEnd() over String#trimLeft() / String#trimRight().
Disallow negated expression in equality check.
Prefer String#slice() over String#substr() and String#substring().
Disallow classes that only have static members.