Option to suppress ignored file warnings
See original GitHub issueUsing version 2.10.2 with browserify via eslintify. All files that our code 'require( )'s gets passed into eslint. This includes things that should be ignored such as npm or bower packages. Currently, this results in a bunch of warnings about ignored files which aren’t really useful in this case. Ideally, eslint would have an option to suppress ignored file warnings.
Since eslintify is calling executeOnText
, a warnIgnored
parameter added here would probably be a quick fix: https://github.com/eslint/eslint/blob/c10c07f0eec529ea055e8d95d9f9899228274911/lib/cli-engine.js#L745
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
how to silence warnings about ignored files in eslint
One workaround I know at the moment is --quiet option, which suppresses all warnings. Of course that doesn't make sense if you have...
Read more >Remove warnings when linting ignored files #15010 - GitHub
When running eslint with globs or explicit paths to files and that file is ignored in .eslintignore, a warning is shown. For example,...
Read more >Ignoring Code - ESLint - Pluggable JavaScript Linter
Ignored File Warnings ... This message occurs because ESLint is unsure if you wanted to actually lint the file or not. As the...
Read more >/IGNORE (Ignore Specific Warnings) | Microsoft Learn
Specify /IGNORE: warning to tell the linker to suppress a specific warning number. To ignore multiple warnings, separate the warning numbers ...
Read more >warnings — Warning control — Python 3.11.1 documentation
Warning messages are normally written to sys.stderr , but their disposition can be changed flexibly, from ignoring all warnings to turning them into ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @robertlevy! Thanks for the suggestion. Sounds solid, let’s wait to see what the rest of the gang thinks 😃 Concerning your fix suggestion, I imagine we could get even more value out of this if the option can also be passed in to the CLI, something like this:
What do you think?
Seems reasonable.