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.

no-unused-vars: varsIgnorePattern doesn't work

See original GitHub issue

I have no-unused-vars": [2, {"varsIgnorePattern": "^L$"}], set to ignore my Logger declaration in each file: const L = Logger.getLogger("ProPage2.Mutations").

It does not work. I’m using eslint 1.0.0

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
justin-callejacommented, Jul 21, 2016

@mysticatea thanks! (haven’t tried it out - I’ll do that later. Didn’t know there was an argsIgnorePattern in addition to a varsIgnorePattern).

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint no-unused-vars varIgnorePattern not working
The varsIgnorePattern option specifies exceptions not to check for usage: variables whose names match a regexp pattern.
Read more >
no-unused-vars - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Tidy up ESlint no-unused-vars definitions wrt Ci/Cu/Cr/Cc ...
Lots of work unfortunately, and I don't see it is viable any time soon. The main issue is our content/ code and the...
Read more >
Automatically Remove Unused Imports From Your JS Projects
It is not a big deal, but it looked pretty messy, which I find to be a pity as automatically removing them is...
Read more >
Local Install of ESLint Breaks In-Editor Linting
For my particular project we are looking to use eslint along with a couple ... Ideally this list will be very small as...
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