[eslint config] [base] [patch] Loosen prefer-const to not warn when the variable is “read” before being assigned to.

This commit is contained in:
Jordan Harband
2016-05-15 21:42:45 -05:00
parent 8d6d227848
commit 7a8083795d

View File

@@ -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()