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

Fix: no-unused-vars had been missing some parameters #4065

Merged

Conversation

mysticatea
Copy link
Member

Fixes #4047.

If function expressions or arrow function expressions were exported,
these parameters had been not reported by no-unused-vars.

@@ -233,5 +233,22 @@ ruleTester.run("no-unused-vars", rule, {
// {line: 1, column: 16, message: "\"𠮷\" is defined but never used" }
// ]
// }

// https://github.com/eslint/eslint/issues/4047
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test with more than one parameter like what was reported?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I have done.

…4047)

If function expressions or arrow function expressions were exported,
these parameters had been not reported by `no-unused-vars`.
@mysticatea mysticatea force-pushed the no-unused-vars/fix-params-of-exported-funcs branch from cbc1479 to f759e5d Compare October 8, 2015 03:25
@nzakas
Copy link
Member

nzakas commented Oct 8, 2015

Lgtm

nzakas added a commit that referenced this pull request Oct 8, 2015
…-exported-funcs

Fix: `no-unused-vars` had been missing some parameters
@nzakas nzakas merged commit ca3cc88 into eslint:master Oct 8, 2015
@mysticatea mysticatea deleted the no-unused-vars/fix-params-of-exported-funcs branch November 23, 2015 00:15
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 7, 2018
@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 Feb 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants