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

Is negating groups supported? #310

Closed
chinchang opened this issue Oct 9, 2017 · 4 comments
Closed

Is negating groups supported? #310

chinchang opened this issue Oct 9, 2017 · 4 comments
Labels

Comments

@chinchang
Copy link

chinchang commented Oct 9, 2017

I having file matchers set in lint-staged as:

{
 "!(abc)**package.json": [ "touch \"ran\"" ],
 "app/abc/package.json": [ "echo \"ran inside abc\"" ]
}

Also, I have nonegate set to true.

But even when app/abc/package.json changes, the first matcher also runs. I know its related to minimatch, but would appreciate if someone can help in context of lint-staged.

@dlindenkreuz
Copy link

There is an active pull request + discussion for this over at #273

@okonet
Copy link
Collaborator

okonet commented Oct 28, 2017

Yes, #273 is one to watch. Closing this one.

@okonet
Copy link
Collaborator

okonet commented Jan 21, 2018

@chinchang can you please the #385 and see if this would also solve your use case?

@okonet okonet reopened this Jan 21, 2018
@sudo-suhas
Copy link
Collaborator

Closing due to user inactivity.

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

No branches or pull requests

4 participants