mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 23:37:55 -05:00
[eslint config] [base] [patch] Loosen prefer-const to not warn when the variable is “read” before being assigned to.
This commit is contained in:
@@ -97,7 +97,7 @@ module.exports = {
|
||||
// suggest using of const declaration for variables that are never modified after declared
|
||||
'prefer-const': [2, {
|
||||
'destructuring': 'any',
|
||||
'ignoreReadBeforeAssign': false, // TODO: make true
|
||||
'ignoreReadBeforeAssign': true,
|
||||
}],
|
||||
|
||||
// suggest using the spread operator instead of .apply()
|
||||
|
||||
Reference in New Issue
Block a user