From 7fc5fb7f5bbdec31659f932ec56447f84097bc6f Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 7 Nov 2019 10:25:01 +0800 Subject: [PATCH] chore: gather config (#4951) --- .eslintrc | 4 ---- .prettierrc | 5 ----- .stylelintrc | 3 --- package.json | 14 ++++++++++++++ 4 files changed, 14 insertions(+), 12 deletions(-) delete mode 100644 .eslintrc delete mode 100644 .prettierrc delete mode 100644 .stylelintrc diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index d0707a444..000000000 --- a/.eslintrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "root": true, - "extends": ["@vant"] -} diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 3c409a1a8..000000000 --- a/.prettierrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "printWidth": 90, - "singleQuote": true, - "trailingComma": "none" -} diff --git a/.stylelintrc b/.stylelintrc deleted file mode 100644 index 6880dcfa6..000000000 --- a/.stylelintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["@vant/stylelint-config"] -} diff --git a/package.json b/package.json index c198251ec..ed0c4124d 100644 --- a/package.json +++ b/package.json @@ -124,6 +124,20 @@ "tags": "vetur/tags.json", "attributes": "vetur/attributes.json" }, + "eslintConfig": { + "root": true, + "extends": [ + "@vant" + ] + }, + "stylelint": { + "extends": [ + "@vant/stylelint-config" + ] + }, + "prettier": { + "singleQuote": true + }, "browserslist": [ "Android >= 4.0", "iOS >= 7"