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 there som way to exclude certain checks by file pattern #2958

Closed
AllanHoejgaardJensen opened this issue Jul 9, 2015 · 2 comments
Closed
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion triage An ESLint team member will look at this issue soon

Comments

@AllanHoejgaardJensen
Copy link

Recently we have started using eslint and are very happy with it, and we have a question for you.

We have a number of unit test files named "_test.js" or "some-other-script>-test.js" and these tests get quite a lot of stuff injected and thus the number of parameters gets much higher than the target for the test, thus is why we looked for for some way of excluding e.g. the "max-params" http://eslint.org/docs/rules/max-params for files postfixed with _test.js and -test.js.

So far we were not succesful in finding a way to do that, is there a way - or is this in fact a request for new functionality?

Thank you for your time.

@lo1tuma
Copy link
Member

lo1tuma commented Jul 9, 2015

This is not possible with ESLint right now. It was proposed on the ESLint 2.0 wishlist, so we will discuss this feature again after ESLint 1.0 is released.

There is also a thread on our mailing list about this topic.

@lo1tuma lo1tuma added the triage An ESLint team member will look at this issue soon label Jul 9, 2015
@AllanHoejgaardJensen
Copy link
Author

thank you very much

@nzakas nzakas closed this as completed Jul 10, 2015
@CrabDude CrabDude mentioned this issue Aug 23, 2016
11 tasks
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 7, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion triage An ESLint team member will look at this issue soon
Projects
None yet
Development

No branches or pull requests

3 participants