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
Allow glob exclusions #5
Comments
@okonet I've run into exactly this issue: my generated
so I'd like to exclude specific files (e.g. Any tips? |
|
Thanks again @okonet — I've looked into the minimatch globbing but did not found it very intuitive. Got it to work with However, using a |
Ouch, this burned me too. I was trying to use
I'm trying to see if there's a way to work around this with a different pattern, but otherwise I'll have to think about making a PR to support passing the |
Hey there @okonet @jharris4 @davidhund , I was naively trying to do something like:
but it doesn't seem to be working. Do I need to do something else to get the functionality I need? Maybe you could use https://yarnpkg.com/en/package/multimatch instead of minimatch to support what I'm trying to do? Thanks! |
Good suggestion. Do you mind creating a PR for that? |
For anyone who stumbles upon this issue like me it now supports glob match but uses micromatch now read this post I added for the fix. |
Some projects commit build (dist) files to the repository. Usually, the syntax of these generated files is out of the scope of linters. But ATM all files that matches the glob pattern will run against linters.
Ideally we want
*-staged
tasks to be configured the same way as normal linter tasks.But this might require a major rewrite and switch to the Node from CLI.
The text was updated successfully, but these errors were encountered: