eslint-plugin-filenames icon indicating copy to clipboard operation
eslint-plugin-filenames copied to clipboard

Forbidden name rule

Open fa93hws opened this issue 4 years ago • 2 comments

Hi I am wondering if there will be a rule to forbid certain filename pattern.

Negatives in regex is a bit hard to use, and the match-regex rule doesn't include the file extension as well.

fa93hws avatar Aug 20 '19 05:08 fa93hws

You could do this with my plugin, I chose to run the regex against the full name of the file.

dolsem avatar Aug 11 '20 22:08 dolsem

As an alternative, you can use eslint-plugin-project-structure

features: ✅ Validation of project structure (Any files/folders outside the structure will be considered an error). ✅ Validation of folder and file names. ✅ Name case validation. ✅ Name regex validation. ✅ File extension validation (Support for all extensions). ✅ Inheriting the parent's name (The child inherits the name of the folder in which it is located). ✅ Folder recursion (You can nest a given folder structure recursively). ✅ Forcing a nested/flat structure for a given folder.

Igorkowalski94 avatar Oct 01 '23 08:10 Igorkowalski94