-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Unable to ignore a path containing square brackets #59
Labels
Comments
kaelzhang
added a commit
that referenced
this issue
May 22, 2020
kaelzhang
added a commit
that referenced
this issue
May 22, 2020
Nice catch buddy. But it will take time, I need a complete test with more test cases about escaping. gitignore manual is really lame and lacks of cases, so I need to be cautious. |
kaelzhang
added a commit
that referenced
this issue
May 22, 2020
kaelzhang
added a commit
that referenced
this issue
May 22, 2020
Landed in |
However, Eslint depends on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using the ESLint no-restricted-imports rule, which uses this package under the hood. I've reproduced this issue against node-ignore directly.
We have some tokens in our import paths which are denoted by square brackets. Ignoring these doesn't currently seem to work. I've escaped them in the pattern as required by gitignore (and another
\
to escape the\
for JavaScript), and tried the same scenario usinggit check-ignore
which works.Such paths also can't be un-ignored:
Version: 5.1.4
The text was updated successfully, but these errors were encountered: