Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forbidden name rule #40

Open
fa93hws opened this issue Aug 20, 2019 · 2 comments
Open

Forbidden name rule #40

fa93hws opened this issue Aug 20, 2019 · 2 comments

Comments

@fa93hws
Copy link

fa93hws commented Aug 20, 2019

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.

@dolsem
Copy link

dolsem commented Aug 11, 2020

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

@Igorkowalski94
Copy link

Igorkowalski94 commented Oct 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants