README
eslint-plugin-pathnames
Matches names of files and folders against a regular expression
Installation
$ npm install eslint-plugin-pathnames --save-dev
Usage
Add pathnames
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"pathnames"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"pathnames/match": [
"error",
{
"fileNames": "^[0-9A-Za-z]+