Re:How to manage HTML DOM with vanilla JavaScript only?
by orange8 on Thursday April 02, 2020 @05:35PM
(#22764130)
The rule you link to is specific to "function expressions", which may or may not use 'this'.
To ask the same question differently, what about functions that do not need 'this'?
Re:How to manage HTML DOM with vanilla JavaScript only?
by ng12 on Friday April 03, 2020 @03:55PM
(#22773356)
I'm not sure what your proposal is -- use functions that use prototype this or no this, and arrow functions for ones that use contextual this?
It's easier to use arrow functions for everything except for the tiny minority of cases where you want prototype this.
https://eslint.org/docs/rules/prefer-arrow-callback