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.

How to slient the ignored file warning

See original GitHub issue

Because of my program using auto-generated .d.ts, which is incompatible with my custom eslint rules, I had to ignore these files.

This issue is caused by eslint 'ignore_file' like:

❯ pnpm eslint "./src/auto-imports.d.ts"

/root/Programs/*****/auto-imports.d.ts
  0:0  warning  File ignored because of a matching ignore pattern. Use "--no-ignore" to override

✖ 1 problem (0 errors, 1 warning)

attachment 1: emmm, is eslint.dev.eslint defined in vite.config.js? THX

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Yuddomackcommented, Feb 22, 2022

@greenhat616

I also had a similar situation, eslint tells you which path was ignored. (in my case, notified coverage/... from jest reports ignored) solved it by excluded from inspection, not ignore pattern.

so you can try

eslint "**/!(*.d).*"

I’m not sure it is best, but this will be a temporary solution (If the notification bothers you)

0reactions
stale[bot]commented, May 6, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a bug report, please provide a minimal re-production repository or use path to reproduce. Thank you for your contributions.

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 >
Apex (Salesforce) - How to silence "File ignored because of a ...
I found the solution, I hope it will help someone. It is only important to run the command with the --engine 'pmd' ....
Read more >
Ignoring Code - ESLint - Pluggable JavaScript Linter
Ignored File Warnings. When you pass directories to ESLint, files and directories are silently ignored. If you pass a specific file to ESLint,...
Read more >
silently failing when attempting to add ignored files - git-annex
Hmm, but, git add somedir does not warn if there are gitignored files in somedir; it silently skips them while adding the rest...
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