Disabling ignoring unused vars for _ prefix
See original GitHub issueWe currently ignore unused vars with _
prefix, mainly as a workaround for deleting extra properties in ...rest
destructuring. However https://github.com/facebookincubator/create-react-app/pull/1705 is a proper fix for this, so I think we should remove the _
rule in the next major bump. This would fix https://github.com/facebookincubator/create-react-app/issues/1387.
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (13 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 - ESLint - Pluggable JavaScript Linter
This rule is aimed at eliminating unused variables, functions, and function parameters. ... For example, variables whose names contain ignored or Ignored ....
Read more >Linters | golangci-lint
Name Description Presets Since
asasalint ⚙️ check for pass any as any in variadic func(...any) bugs 1.47.0
bidichk ⚙️ Checks for dangerous unicode character sequences...
Read more >Eslint ignore - Caritas Castellaneta
How to Ignore and Disable Type Rules Using TypeScript …grunt-eslint supports ... ignore parameters with underscore This rule will make no-unused-vars rule ...
Read more >vue/no-unused-vars
disallow unused variable definitions of v-for directives or scope ... which add a prefix _ to your variable and no more eslint error ......
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
Sure, I’ll do it.
@doshisid Do you mind following up with @ljharb and raising an issue in Airbnb ESLint config repo too?