Allow to ignore patterns in ignoreUnused
See original GitHub issuee.g. getting many false-positives for @babel/
and @types/
1 │ @babel/polyfill
2 │ @react-stately/checkbox
3 │ @testing-library/cypress
4 │ @tsconfig/node12
5 │ @types/express
6 │ @types/gapi.auth2
7 │ @types/http-terminator
8 │ @types/ioredis
9 │ @types/is-object
10 │ @types/lightship
11 │ @types/segment-analytics
12 │ @types/ua-parser-js
13 │ @types/yargs
Would like to just ignore @babel/*
and @types/*
.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:21 (8 by maintainers)
Top Results From Across the Web
How to disable warn about some unused params, but keep ...
Only way that I found is to use ignore pattern argsIgnorePattern in rule options. If your variable is unused, just add underscore _ctx...
Read more >[no-unused-vars] allow ignore patterns for rest siblings #1657
Array patterns let you just not specify the element if you don't want to use it. I.e. this is valid code. const [_WILL_NOT_USE,...
Read more >no-unused-vars - ESLint - Pluggable JavaScript Linter
The destructuredArrayIgnorePattern option specifies exceptions not to check for usage: elements of array destructuring patterns whose names match a regexp ...
Read more >no-unused-variable - Rule
Disallows unused imports, variables, functions and private class members. ... Variable names and imports that match the pattern will be ignored.
Read more >Ignoring Errors - PHPStan
To ignore errors by a regular expression only in a specific file, add an entry with message or messages and path or paths...
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
Also having the issue with unresolved imports using webpack loaders:
Should we also count the number of ignored imports, and add them to the printed statistics?
(can be a separate ticket/pull, but could definitely help when people think they’re seeing incorrect results)