Skip to content

Commit 83c431d

Browse files
committed
[eslint config] [base] [breaking] enable no-class-assign rule, to pair with no-func-assign
1 parent e9aec9e commit 83c431d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/eslint-config-airbnb-base/rules

packages/eslint-config-airbnb-base/rules/es6.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ module.exports = {
2929
// enforce the spacing around the * in generator functions
3030
'generator-star-spacing': 0,
3131
// disallow modifying variables of class declarations
32-
// TODO: enable
33-
'no-class-assign': 0,
32+
// http://eslint.org/docs/rules/no-class-assign
33+
'no-class-assign': 2,
3434
// disallow arrow functions where they could be confused with comparisons
3535
// http://eslint.org/docs/rules/no-confusing-arrow
3636
'no-confusing-arrow': [2, {

0 commit comments

Comments
 (0)