eslint-plugin-filenames
eslint-plugin-filenames copied to clipboard
Forbidden name rule
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.
You could do this with my plugin, I chose to run the regex against the full name of the file.
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.