no-unused-vars: varsIgnorePattern doesn't work
See original GitHub issueI 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:
- Created 8 years ago
- Comments:6 (2 by maintainers)
Top 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 >
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 Free
Top 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
http://eslint.org/docs/rules/no-unused-vars#argsignorepattern
@mysticatea thanks! (haven’t tried it out - I’ll do that later. Didn’t know there was an argsIgnorePattern in addition to a varsIgnorePattern).