💼 This rule is enabled in the ✅ recommended
config.
Rule to ensure that filenames match a convention, with a default of camelCase.
👎 Examples of incorrect filename for this default rule:
file-name.js
👍 Examples of correct code for this rule:
fileName.js
regex - Regex to match the filename structure. Defaults to camelCase.
{
"filenames-match-regex": [
"error",
"^[a-z0-9-]+(.[a-z0-9-]+)?$"
]
}
4.3.2