Browse Source

Enable no-class-assign

Usually it makes no sense to reassign class variables

http://eslint.org/docs/rules/no-class-assign

Change-Id: Id556cd4e427c8772aed0e97aa68fa742f8692b7d
Vitaly Kramskikh 2 years ago
parent
commit
ff4405854c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      .eslintrc

+ 1
- 1
.eslintrc View File

@@ -871,7 +871,7 @@ rules:
871 871
 
872 872
   # disallow modifying variables of class declarations
873 873
   # http://eslint.org/docs/rules/no-class-assign
874
-  no-class-assign: 0
874
+  no-class-assign: 2
875 875
 
876 876
   # disallow arrow functions where they could be confused with comparisons
877 877
   # http://eslint.org/docs/rules/no-confusing-arrow

Loading…
Cancel
Save