From 74b7fbdf554e521514d71207b63acbb2296991f1 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sun, 4 Apr 2021 08:51:22 +0800 Subject: [PATCH] chore(cli): split eslintrc --- packages/vant-cli/.eslintrc | 8 ++++++++ packages/vant-cli/package.json | 13 +------------ packages/vant-cli/yarn.lock | 9 ++++----- 3 files changed, 13 insertions(+), 17 deletions(-) create mode 100644 packages/vant-cli/.eslintrc diff --git a/packages/vant-cli/.eslintrc b/packages/vant-cli/.eslintrc new file mode 100644 index 000000000..5f2aa751f --- /dev/null +++ b/packages/vant-cli/.eslintrc @@ -0,0 +1,8 @@ +{ + "root": true, + "extends": ["@vant"], + "rules": { + "global-require": 0, + "import/no-dynamic-require": 0 + } +} diff --git a/packages/vant-cli/package.json b/packages/vant-cli/package.json index 97dffc38d..d8538d1a7 100644 --- a/packages/vant-cli/package.json +++ b/packages/vant-cli/package.json @@ -1,7 +1,6 @@ { "name": "@vant/cli", "version": "3.8.0", - "description": "", "main": "lib/index.js", "typings": "lib/index.d.ts", "bin": { @@ -69,7 +68,7 @@ "fork-ts-checker-webpack-plugin": "^6.1.0", "gh-pages": "^3.1.0", "hash-sum": "^2.0.0", - "html-webpack-plugin": "^5.2.0", + "html-webpack-plugin": "^5.3.1", "husky": "^6.0.0", "jest": "^26.6.3", "jest-canvas-mock": "^2.3.0", @@ -104,15 +103,5 @@ "tag": false, "commitMessage": "chore: release @vant/cli@${version}" } - }, - "eslintConfig": { - "root": true, - "extends": [ - "@vant" - ], - "rules": { - "global-require": 0, - "import/no-dynamic-require": 0 - } } } diff --git a/packages/vant-cli/yarn.lock b/packages/vant-cli/yarn.lock index b9cb05568..ddb59abac 100644 --- a/packages/vant-cli/yarn.lock +++ b/packages/vant-cli/yarn.lock @@ -5190,14 +5190,13 @@ html-tags@^3.1.0: resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-3.1.0.tgz#7b5e6f7e665e9fb41f30007ed9e0d41e97fb2140" integrity sha512-1qYz89hW3lFDEazhjW0yVAV87lw8lVkrJocr72XmBkMKsoSVJCQx3W8BXsC7hO2qAt8BoVjYjtAcZ9perqGnNg== -html-webpack-plugin@^5.2.0: - version "5.2.0" - resolved "https://registry.npm.taobao.org/html-webpack-plugin/download/html-webpack-plugin-5.2.0.tgz?cache=0&sync_timestamp=1613744691795&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhtml-webpack-plugin%2Fdownload%2Fhtml-webpack-plugin-5.2.0.tgz#d675ad0027a89de6b3d9950e0b57656dcfd97fbf" - integrity sha1-1nWtACeoneaz2ZUOC1dlbc/Zf78= +html-webpack-plugin@^5.3.1: + version "5.3.1" + resolved "https://registry.npm.taobao.org/html-webpack-plugin/download/html-webpack-plugin-5.3.1.tgz#8797327548e3de438e3494e0c6d06f181a7f20d1" + integrity sha1-h5cydUjj3kOONJTgxtBvGBp/INE= dependencies: "@types/html-minifier-terser" "^5.0.0" html-minifier-terser "^5.0.1" - loader-utils "^2.0.0" lodash "^4.17.20" pretty-error "^2.1.1" tapable "^2.0.0"