-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Need equivalent to .jshintignore file #484
Comments
I think I would actually like it to be an option in |
Putting it in .eslintrc might complicate things when you have multiple Having a top-level .eslintignore seems like a simpler way to handle it, IMO. |
As far as I remember, jshint allows you to put |
Up to you what you'd like to do. If you're passionate about this, we can schedule it for a milestone. If you'd rather backlog it, let me know. |
I'll see what I can do on the weekend. I think I would rather have exclusions in .eslintrc file. No need for extra file, just to exclude stuff from linting. |
After writing all the code for this, I realized that .eslint wouldn't work for this. Ignore file should contain globs based on the directory that it's in, however, config file can be passed to cli from any location. In that case, it's not clear how to resolve globs inside of it. I guess .eslintignore would be the right thing to do. |
Adding support for .eslintignore and .jshintignore (Closes #484)
Need to be able to exclude certain files and sub-directories from eslint when feeding it a directory. I though we already have this feature, but looking through the issues and the code, I don't see it. defiantly need this for web-site linting (excluding vendor sub-directory, for example). It should support globs as exclusion patterns. Might also want to support .jshintignore files directly as well, to make it easier for people transitioning from jshint.
The text was updated successfully, but these errors were encountered: