eslint/no-redeclare Pedantic β
What it does β
Disallow variable redeclaration
Why is this bad? β
n JavaScript, itβs possible to redeclare the same variable name using var. This can lead to confusion as to where the variable is actually declared and initialized.
Example β
javascript
var a = 3;
var a = 10;