diff --git a/.eslintrc b/.eslintrc index 467d458f1..28d474c80 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,12 +1,14 @@ { "root": true, "extends": ["@vant"], + "rules": { + "prefer-object-spread": "off" + }, "overrides": [ { "files": ["src/**/*"], "excludedFiles": ["**/test/*", "**/demo/*"], "rules": { - "prefer-object-spread": "off", // since we target ES2015 for baseline support, we need to forbid object // rest spread usage (both assign and destructure) "no-restricted-syntax": [ diff --git a/packages/vant-popperjs/package.json b/packages/vant-popperjs/package.json index 155c3aef9..e9c41b65e 100644 --- a/packages/vant-popperjs/package.json +++ b/packages/vant-popperjs/package.json @@ -23,7 +23,6 @@ "@popperjs/core": "^2.9.2" }, "devDependencies": { - "@babel/runtime": "7.x", "@rollup/plugin-babel": "^5.2.1", "@rollup/plugin-node-resolve": "^10.0.0", "release-it": "^14.2.2", diff --git a/packages/vant-popperjs/yarn.lock b/packages/vant-popperjs/yarn.lock index 78c4dae6a..991e79aba 100644 --- a/packages/vant-popperjs/yarn.lock +++ b/packages/vant-popperjs/yarn.lock @@ -30,13 +30,6 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/runtime@7.x": - version "7.12.5" - resolved "https://registry.npm.taobao.org/@babel/runtime/download/@babel/runtime-7.12.5.tgz?cache=0&sync_timestamp=1604443606981&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e" - integrity sha1-QQ5+SHRB4bNgwpvnFdhw2bmFiC4= - dependencies: - regenerator-runtime "^0.13.4" - "@babel/types@^7.12.5": version "7.12.7" resolved "https://registry.npm.taobao.org/@babel/types/download/@babel/types-7.12.7.tgz?cache=0&sync_timestamp=1605904888635&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Ftypes%2Fdownload%2F%40babel%2Ftypes-7.12.7.tgz#6039ff1e242640a29452c9ae572162ec9a8f5d13" @@ -1504,11 +1497,6 @@ rechoir@^0.6.2: dependencies: resolve "^1.1.6" -regenerator-runtime@^0.13.4: - version "0.13.7" - resolved "https://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" - integrity sha1-ysLazIoepnX+qrrriugziYrkb1U= - registry-auth-token@^4.0.0: version "4.2.1" resolved "https://registry.npm.taobao.org/registry-auth-token/download/registry-auth-token-4.2.1.tgz#6d7b4006441918972ccd5fedcd41dc322c79b250"