-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
A tangential note for the JS, I think we should enable the ESLint
no-shadowrule to avoid bugs and simplifying process for reading code.
Originally posted by @alex-ketch in stencila/thema#84
Motivation: From the rule reference
Shadowing is the process by which a local variable shares the same name as a variable in its containing scope. For example:
var a = 3; function b() { var a = 10; }In this case, the variable a inside of b() is shadowing the variable a in the global scope. This can cause confusion while reading the code and it's impossible to access the global variable.
nokome
Metadata
Metadata
Assignees
Labels
No labels