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"