From b056ad09bb321169729ce1c6487056716154fe2e Mon Sep 17 00:00:00 2001 From: RH Becker Date: Thu, 29 Oct 2015 22:43:33 -0700 Subject: [PATCH] Flag modification of variables that are declared using `const` keyword as an error. --- packages/eslint-config-airbnb/rules/es6.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb/rules/es6.js b/packages/eslint-config-airbnb/rules/es6.js index b672d4aa..f192556a 100644 --- a/packages/eslint-config-airbnb/rules/es6.js +++ b/packages/eslint-config-airbnb/rules/es6.js @@ -32,7 +32,7 @@ module.exports = { // disallow modifying variables of class declarations 'no-class-assign': 0, // disallow modifying variables that are declared using const - 'no-const-assign': 0, + 'no-const-assign': 2, // disallow to use this/super before super() calling in constructors. 'no-this-before-super': 0, // require let or const instead of var