We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Given a config like
'check-file/folder-naming-convention': [ 'error', { 'src/pages/**': 'KEBAB_CASE'', 'src/!(pages)/**': 'CAMEL_CASE', } ]
Then the following folder-names are considered valid:
src/pages/first-page/**
src/components/visual/interactiveButton/**
src/components/visual/interactive-button/**
Expected behavior
interactive-button
Project structure
. └── src └── components └── visual └── interactive-button // should fail here! └── SomeFile.tsx └── interactiveButton // should be the only valid format └── SomeFile.tsx └── pages └── first-page └── page.tsx
Desktop (please complete the following information):
Additional information This bug only exist if the exclusion is applied on a sub-folder. It doesn't exist if the root-folder (here src) is excluded.
src
The text was updated successfully, but these errors were encountered:
Thanks for your issue. It seems there is a bug when using with the ! matcher. I will work on fixing this bug.
!
And you can use the following configuration as a workaround, it works well with your test data.
{ "plugins": [ "check-file" ], "rules": { "check-file/folder-naming-convention": [ "error", { "src/pages/**/": "KEBAB_CASE", "src/components/**/": "CAMEL_CASE" } ] } }
Sorry, something went wrong.
fix(#21): folder-naming-convention should work well with multiple mat…
b16d357
…chers in a folder pattern
@mleimer The new version 2.3.0 is released, you can try it now.
No branches or pull requests
Describe the bug
Given a config like
Then the following folder-names are considered valid:
src/pages/first-page/**
src/components/visual/interactiveButton/**
src/components/visual/interactive-button/**
Expected behavior
src/components/visual/interactive-button/**
should not be valid, becauseinteractive-button
is violating the CAMEL_CASE rule.Project structure
Desktop (please complete the following information):
Additional information
This bug only exist if the exclusion is applied on a sub-folder. It doesn't exist if the root-folder (here
src
) is excluded.The text was updated successfully, but these errors were encountered: