Skip to content

Commit b056ad0

Browse files
author
RH Becker
committed
Flag modification of variables that are declared using const keyword as an error.
1 parent 01ba082 commit b056ad0

File tree

1 file changed

+1
-1
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = {
3232
// disallow modifying variables of class declarations
3333
'no-class-assign': 0,
3434
// disallow modifying variables that are declared using const
35-
'no-const-assign': 0,
35+
'no-const-assign': 2,
3636
// disallow to use this/super before super() calling in constructors.
3737
'no-this-before-super': 0,
3838
// require let or const instead of var

0 commit comments

Comments
 (0)