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.

Allow to ignore patterns in ignoreUnused

See original GitHub issue

e.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:open
  • Created 2 years ago
  • Reactions:1
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
villelahdenvuocommented, Jul 15, 2022

Also having the issue with unresolved imports using webpack loaders: image

1reaction
smeijercommented, Mar 7, 2022

Should we also count the number of ignored imports, and add them to the printed statistics?

   unresolved imports  : 2
   unused dependencies : 29
   unimported files    : 86
+  ignored imports     : n       

(can be a separate ticket/pull, but could definitely help when people think they’re seeing incorrect results)

Read more comments on GitHub >

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

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