question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to suppress ignored file warnings

See original GitHub issue

Using 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

See also https://github.com/yaycmyk/eslintify/pull/10

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
vitorbalcommented, Jun 1, 2016

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:

eslint --no-ignored-warnings --lib/**

What do you think?

0reactions
nzakascommented, Jun 3, 2016

Seems reasonable.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found