]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: update eslint config to allow spread usage
authorEvan You <yyx990803@gmail.com>
Tue, 10 May 2022 02:43:07 +0000 (10:43 +0800)
committerEvan You <yyx990803@gmail.com>
Tue, 10 May 2022 02:43:41 +0000 (10:43 +0800)
.eslintrc.js

index 4c667f90216ebcebb96e020be9495a88fe7c65c9..71acd8dd898da99a6cb18c15f2456b2dc15a3ad8 100644 (file)
@@ -16,10 +16,11 @@ module.exports = {
     // most of the codebase are expected to be env agnostic
     'no-restricted-globals': ['error', ...DOMGlobals, ...NodeGlobals],
     // since we target ES2015 for baseline support, we need to forbid object
-    // rest spread usage (both assign and destructure)
+    // rest spread usage in destructure as it compiles into a verbose helper.
+    // TS now compiles assignment spread into Object.assign() calls so that
+    // is allowed.
     'no-restricted-syntax': [
       'error',
-      'ObjectExpression > SpreadElement',
       'ObjectPattern > RestElement',
       'AwaitExpression'
     ]