This rule make sure the filename follows the naming convention.
{
"plugins": ["filenames-simple"],
"rules": {
"filenames-simple/naming-convention": [
"error",
{
"rule": "CamelCase",
"excepts": ["index"]
}
]
}
}
Specify one of the following naming conventions or your regular expression syntax.
If you specify the regular expression, ^
at the beginning and $
at the end of the expression are automatically completed.
- camelCase (lowerCamelCase)
- kebab-case (hyphen-case, default)
- PascalCase (UpperCamelCase)
- snake_case (underscore_case)
Specify filenames in regular expression syntax that ignores the above naming convention.
^
at the beginning and $
at the end of the expression are automatically completed.
This options accepts an array of strings.
default value: ["index"]