Flag modification of variables that are declared using const keyword as an error.

This commit is contained in:
RH Becker
2015-10-29 22:43:33 -07:00
parent 01ba082cf3
commit b056ad09bb

View File

@@ -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