mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 20:58:18 -05:00
Added "prefer-const" rule
Added new ES6 rule, introduced in eslint 0.23.0 > This rule is aimed to flag variables that are declared using let keyword, but never modified after initial assignment.
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
* ES6
|
||||
*/
|
||||
"no-var": 2, // http://eslint.org/docs/rules/no-var
|
||||
"prefer-const": 2, // http://eslint.org/docs/rules/prefer-const
|
||||
|
||||
/**
|
||||
* Variables
|
||||
|
||||
Reference in New Issue
Block a user