Closed wcjohnson closed 4 years ago
When a variable in a lower scope is shadowing a variable from a higher scope, LightScript requires an explicit const. The unnecessary-const rule is flagging false positive i this case, example, res is shadowing another res below:
const
unnecessary-const
res
When a variable in a lower scope is shadowing a variable from a higher scope, LightScript requires an explicit
const
. Theunnecessary-const
rule is flagging false positive i this case, example, res is shadowing anotherres
below: