How to slient the ignored file warning
See original GitHub issueBecause 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:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 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 >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 >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
@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
I’m not sure it is best, but this will be a temporary solution (If the notification bothers you)
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.