This rule ensures that filenames are plural (or singular).
{
"plugins": ["filenames-simple"],
"rules": {
"filenames-simple/pluralize": [
"error",
{
"parentDir": "plural",
"file": "singular"
}
]
}
}
Specify one of the following naming conventions for each parentDir
or file
.
- singular
- plural