--- ruleName: no-duplicate-variable description: Disallows duplicate variable declarations in the same block scope. descriptionDetails: |- This rule is only useful when using the `var` keyword - the compiler will detect redeclarations of `let` and `const` variables. rationale: |- A variable can be reassigned if necessary - there's no good reason to have a duplicate variable declaration. optionsDescription: Not configurable. options: null optionExamples: - 'true' type: functionality optionsJSON: 'null' layout: rule title: 'Rule: no-duplicate-variable' ---