From: Evan You Date: Tue, 10 May 2022 02:43:07 +0000 (+0800) Subject: workflow: update eslint config to allow spread usage X-Git-Tag: v3.2.34-beta.1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83aaa9b5469072f43314b11388e5985b77597acd;p=thirdparty%2Fvuejs%2Fcore.git workflow: update eslint config to allow spread usage --- diff --git a/.eslintrc.js b/.eslintrc.js index 4c667f9021..71acd8dd89 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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' ]