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

Update: support separate requires in one-var. (fixes #6175) #9441

Merged
merged 4 commits into from Dec 23, 2017

Conversation

aladdin-add
Copy link
Member

What is the purpose of this pull request? (put an "X" next to item)

[x] Changes an existing rule (template)

What changes did you make? (Give an overview)
fixes #6175

Is there anything you'd like reviewers to focus on?

@eslintbot
Copy link

LGTM

@aladdin-add aladdin-add added accepted There is consensus among the team that this change meets the criteria for inclusion enhancement This change enhances an existing feature of ESLint rule Relates to ESLint's core rules labels Oct 14, 2017
@aladdin-add aladdin-add force-pushed the issue6175 branch 3 times, most recently from a020a67 to 2fde846 Compare November 13, 2017 23:33
@aladdin-add aladdin-add changed the title WIP: Update: support separate requires in one-var. (fixes #6175) Update: support separate requires in one-var. (fixes #6175) Nov 14, 2017
options.var = { uninitialized: mode.var, initialized: mode.var };
}
if (mode.hasOwnProperty("let") && typeof mode.let === "string") {
Copy link
Member Author

Choose a reason for hiding this comment

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

removed checking type, since ajv would have checked.

@aladdin-add aladdin-add reopened this Nov 14, 2017
Copy link
Sponsor Contributor

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Should this option only apply when the env is node?

docs/rules/one-var.md Show resolved Hide resolved
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Jun 22, 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 Jun 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion enhancement This change enhances an existing feature of ESLint rule Relates to ESLint's core rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support separate requires in one-var
5 participants