Disallow reassigning class members
The "extends": "eslint:recommended"
property in a configuration file enables this rule
ClassDeclaration
creates a variable, and we can modify the variable.
But the modification is a mistake in most cases.
This rule is aimed to flag modifying variables of class declarations.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
If you don’t want to be notified about modifying variables of class declarations, you can safely disable this rule.
This rule was introduced in ESLint v1.0.0-rc-1.
© OpenJS Foundation and other contributors
Licensed under the MIT License.
https://eslint.org/docs/latest/rules/no-class-assign