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.

Disabling ignoring unused vars for _ prefix

See original GitHub issue

We 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:closed
  • Created 7 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
sidoshicommented, May 11, 2017

Sure, I’ll do it.

1reaction
gaearoncommented, May 11, 2017

@doshisid Do you mind following up with @ljharb and raising an issue in Airbnb ESLint config repo too?

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

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