Skip to content

Commit 7a80837

Browse files
committed
[eslint config] [base] [patch] Loosen prefer-const to not warn when the variable is “read” before being assigned to.
1 parent 8d6d227 commit 7a80837

File tree

1 file changed

+1
-1
lines changed
  • packages/eslint-config-airbnb-base/rules

1 file changed

+1
-1
lines changed

packages/eslint-config-airbnb-base/rules/es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module.exports = {
9797
// suggest using of const declaration for variables that are never modified after declared
9898
'prefer-const': [2, {
9999
'destructuring': 'any',
100-
'ignoreReadBeforeAssign': false, // TODO: make true
100+
'ignoreReadBeforeAssign': true,
101101
}],
102102

103103
// suggest using the spread operator instead of .apply()

0 commit comments

Comments
 (0)