From 70f01133d9545129bbafec903ae7cd0579996670 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Mon, 21 Dec 2020 17:23:05 +0800 Subject: [PATCH] fix(@vant/eslint-config): use default component-definition-name-casing --- packages/vant-cli/package.json | 2 +- packages/vant-cli/yarn.lock | 8 ++++---- packages/vant-eslint-config/index.js | 5 ----- packages/vant-eslint-config/package.json | 2 +- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/packages/vant-cli/package.json b/packages/vant-cli/package.json index e83f2b207..33c727837 100644 --- a/packages/vant-cli/package.json +++ b/packages/vant-cli/package.json @@ -48,7 +48,7 @@ "@nuxt/friendly-errors-webpack-plugin": "^2.5.0", "@types/jest": "^26.0.15", "@types/webpack-dev-server": "^3.11.1", - "@vant/eslint-config": "^3.0.1", + "@vant/eslint-config": "^3.0.3", "@vant/markdown-loader": "^3.0.2", "@vant/markdown-vetur": "^2.0.2", "@vant/stylelint-config": "^1.4.0", diff --git a/packages/vant-cli/yarn.lock b/packages/vant-cli/yarn.lock index c3d925871..3f66105aa 100644 --- a/packages/vant-cli/yarn.lock +++ b/packages/vant-cli/yarn.lock @@ -1860,10 +1860,10 @@ "@typescript-eslint/types" "4.6.1" eslint-visitor-keys "^2.0.0" -"@vant/eslint-config@^3.0.1": - version "3.0.1" - resolved "https://registry.npmjs.org/@vant/eslint-config/-/eslint-config-3.0.1.tgz#0bd43195c16817f64a3402d82a12563a4144707f" - integrity sha512-uzzF8wuZVUFkKs5a/+nIeDeYoX7M1kjd4lxSb2hq8//M0s1Ddw1xGuNuSq7QPzQpwXB7SdGfFK8rHxQdVThyUw== +"@vant/eslint-config@^3.0.3": + version "3.0.3" + resolved "https://registry.npmjs.org/@vant/eslint-config/-/eslint-config-3.0.3.tgz#c3b5a4f87a03757b42eedff147132ed2231b7d69" + integrity sha512-pqIlDC715QeWZxmYOR/GaeZdRdaVbuHI7gETtyPBzZ5hOpQ6JxQrvazvUgTU0LgFvLC60eBJoeJ3+hmd/wnicg== dependencies: "@typescript-eslint/eslint-plugin" "^4.6.0" "@typescript-eslint/parser" "^4.6.0" diff --git a/packages/vant-eslint-config/index.js b/packages/vant-eslint-config/index.js index 011999220..017dd8dc9 100644 --- a/packages/vant-eslint-config/index.js +++ b/packages/vant-eslint-config/index.js @@ -53,11 +53,6 @@ module.exports = { 'vue/require-v-for-key': 'off', 'vue/require-default-prop': 'off', 'vue/no-unused-components': 'off', - 'vue/component-definition-name-casing': [ - 'error', - 'PascalCase' | 'kebab-case', - ], - 'vue/component-name-in-template-casing': ['error', 'kebab-case'], // typescript-eslint '@typescript-eslint/camelcase': 'off', '@typescript-eslint/ban-ts-comment': 'off', diff --git a/packages/vant-eslint-config/package.json b/packages/vant-eslint-config/package.json index 419f4fcfd..8fea0dc9d 100644 --- a/packages/vant-eslint-config/package.json +++ b/packages/vant-eslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@vant/eslint-config", - "version": "3.0.1", + "version": "3.0.3", "description": "eslint config of vant", "main": "index.js", "publishConfig": {