summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/prefer-const.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/prefer-const.js')
-rw-r--r--tools/eslint/lib/rules/prefer-const.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/eslint/lib/rules/prefer-const.js b/tools/eslint/lib/rules/prefer-const.js
index 07d8da82a1..53bdc2ab7b 100644
--- a/tools/eslint/lib/rules/prefer-const.js
+++ b/tools/eslint/lib/rules/prefer-const.js
@@ -9,7 +9,7 @@
// Helpers
//------------------------------------------------------------------------------
-const PATTERN_TYPE = /^(?:.+?Pattern|RestElement|Property)$/;
+const PATTERN_TYPE = /^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/;
const DECLARATION_HOST_TYPE = /^(?:Program|BlockStatement|SwitchCase)$/;
const DESTRUCTURING_HOST_TYPE = /^(?:VariableDeclarator|AssignmentExpression)$/;