Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Removes no-duplicate-variable from the default & recommended configs #1718

Merged
merged 1 commit into from
Nov 15, 2016
Merged

Removes no-duplicate-variable from the default & recommended configs #1718

merged 1 commit into from
Nov 15, 2016

Conversation

elwayman02
Copy link
Contributor

Per the docs for no-duplicate-variable itself:

This rule is only useful when using the var keyword - the compiler will detect redeclarations of let and const variables.

Given that no-var-keyword is already included in both configs, no-deuplicate-variable becomes redundant since var will never be allowed in those configs.

@palantirtech
Copy link
Member

Thanks for your interest in palantir/tslint, @elwayman02! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

Per the [docs](https://palantir.github.io/tslint/rules/no-duplicate-variable/) for `no-duplicate-variable` itself:

> This rule is only useful when using the var keyword - the compiler will detect redeclarations of let and const variables.

Given that `no-var-keyword` is already included in both configs, `no-deuplicate-variable` becomes redundant since `var` will never be allowed in those configs.
@elwayman02
Copy link
Contributor Author

Done.

@adidahiya adidahiya merged commit d0351ad into palantir:master Nov 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants