Rule: no-unnecessary-initializer
Forbids a ‘var’/’let’ statement or destructuring initializer to be initialized to ‘undefined’.
Rationale
Values in JavaScript default to undefined
.
There’s no need to do so manually.
Notes:
Has Fixer
Config
Not configurable.
Config examples
"no-unnecessary-initializer": true
Schema
null