ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / no-unnecessary-initialization
Disallows unnecessary initialization.
module.exports = {
plugins: ["misc"],
rules: {
"misc/no-unnecessary-initialization": "error"
}
};
const x = undefined;
class C {
x = undefined;
}
const x = 1;
class C {
x = 1;
}