selaux / eslint-plugin-filenames

Eslint plugin to check filenames.
318 stars 35 forks source link

Allowed only lowercase? #13

Closed rwu823 closed 7 years ago

rwu823 commented 7 years ago
{
  'filenames/match-regex': ['error', '^[a-z]+$', true]
}

This RegExp that's mean only be allowed lowercase filename, right? But it's not working.

selaux commented 7 years ago

Only if that file has no named export otherwise it is:

{
  'filenames/match-regex': ['error', '^[a-z]+$']
}

(the third parameter being the option for ignoring files with default exports.

rwu823 commented 7 years ago

@selaux It's still no working.

selaux commented 7 years ago

Can you please elaborate on what is not working? Are files not reported as errors? How does the directory structure look etc.

rwu823 commented 7 years ago
root/
├── Dev/
└── tasks/

The Dev dir or filename is passed in the rule.

selaux commented 7 years ago

Do other rules apply to the tasks directory? (Sorry, didn't see the response)

selaux commented 7 years ago

Closed due to inactivity.