mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 19:08:03 -05:00
Flag modification of variables that are declared using const keyword as an error.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user