Skip to content

Commit 893ffb3

Browse files
committed
Merge pull request #560 from rhbecker/update-eslint-config_no-const-assign
disallow reassignment of `const` variables
2 parents 01ba082 + b056ad0 commit 893ffb3

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

+1-1
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)