From 83c431d655e4aabafddfcc56691a39dc3f039b9c Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 6 May 2016 17:39:09 -0700 Subject: [PATCH] [eslint config] [base] [breaking] enable `no-class-assign` rule, to pair with `no-func-assign` --- packages/eslint-config-airbnb-base/rules/es6.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/eslint-config-airbnb-base/rules/es6.js b/packages/eslint-config-airbnb-base/rules/es6.js index aa6e64fd..1183f3da 100644 --- a/packages/eslint-config-airbnb-base/rules/es6.js +++ b/packages/eslint-config-airbnb-base/rules/es6.js @@ -29,8 +29,8 @@ module.exports = { // enforce the spacing around the * in generator functions 'generator-star-spacing': 0, // disallow modifying variables of class declarations - // TODO: enable - 'no-class-assign': 0, + // http://eslint.org/docs/rules/no-class-assign + 'no-class-assign': 2, // disallow arrow functions where they could be confused with comparisons // http://eslint.org/docs/rules/no-confusing-arrow 'no-confusing-arrow': [2, {