Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no-unused-vars rule with for-in loop #12793

Closed
dangreen opened this issue Jan 15, 2020 · 4 comments
Closed

no-unused-vars rule with for-in loop #12793

dangreen opened this issue Jan 15, 2020 · 4 comments
Labels
3rd party integration This is an issue related to a 3rd party consumer archived due to age This issue has been archived; please open a new issue for any further discussion

Comments

@dangreen
Copy link

Environment Info:

Node version: v11.15.0
npm version: v6.7.0
Local ESLint version: v6.8.0 (Currently used)
Global ESLint version: Not found

TravisCI build:
https://travis-ci.com/TrigenSoftware/scripts/builds/144470340

/home/travis/build/TrigenSoftware/scripts/packages/scripts/src/eject.js
  41:13  error  'scriptName' is defined but never used  no-unused-vars

Code:
https://github.com/TrigenSoftware/scripts/blob/master/packages/scripts/src/eject.js#L41

...
	for (const scriptName in scripts) {

		const cmd = scripts[scriptName];
...

scriptName is used

@dangreen dangreen added bug ESLint is working incorrectly triage An ESLint team member will look at this issue soon labels Jan 15, 2020
@dangreen
Copy link
Author

eslint@6.1.0 - ok
eslint@6.2.0 - problems

@kaicataldo kaicataldo added the needs info Not enough information has been provided to triage this issue label Jan 15, 2020
@eslint-deprecated
Copy link

Hi @dangreen, thanks for the issue. It looks like there's not enough information for us to know how to help you.

If you're reporting a bug, please be sure to include:

  1. The version of ESLint you are using (run eslint -v)
  2. What you did (the source code and ESLint configuration)
  3. The actual ESLint output complete with numbers
  4. What you expected to happen instead

Requesting a new rule? Please see Proposing a New Rule for instructions.

Requesting a rule change? Please see Proposing a Rule Change for instructions.

If it's something else, please just provide as much additional information as possible. Thanks!

@kaicataldo
Copy link
Member

Most likely a dupe of #12117.

@dangreen
Copy link
Author

Solution: update babel-eslint to 10.0.3

@kaicataldo kaicataldo added 3rd party integration This is an issue related to a 3rd party consumer and removed bug ESLint is working incorrectly needs info Not enough information has been provided to triage this issue triage An ESLint team member will look at this issue soon labels Jan 15, 2020
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Jul 15, 2020
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Jul 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3rd party integration This is an issue related to a 3rd party consumer archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

No branches or pull requests

2 participants