You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This won't happen if we are just changing properties on the parameter!
(Describe your proposed solution here.)
Let's override the eslint rule with "no-param-reassign": ["error", { "props": false }], so that we can change properties on parameters, and avoid the unnecessary redeclarations of parameters.
Because of our
no-param-reassign
rule, a lot of redeclaration of a function parameter is done, e.g. in parser.js:Why this rule is recommended is because reassigning the function parameter can cause the
arguments
object to be weird:https://spin.atomicobject.com/2011/04/10/javascript-don-t-reassign-your-function-arguments/
This won't happen if we are just changing properties on the parameter!
(Describe your proposed solution here.)
Let's override the eslint rule with
"no-param-reassign": ["error", { "props": false }]
, so that we can change properties on parameters, and avoid the unnecessary redeclarations of parameters.A nonexhaustive list of places this is done:
markbind/src/lib/markbind/src/parser.js
Line 212 in 3591bc5
markbind/src/lib/markbind/src/parser.js
Line 452 in 3591bc5
markbind/src/lib/markbind/src/parser.js
Line 792 in 3591bc5
and many others in
componentParser.js
The text was updated successfully, but these errors were encountered: