From 5f2fa1203722912ff5a19a4be5ab04eec827f3aa Mon Sep 17 00:00:00 2001 From: ota-meshi Date: Fri, 22 Jun 2018 19:34:00 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AD=90=EF=B8=8FNew:=20Add=20`vue/html-el?= =?UTF-8?q?ement-name-kebab-casing`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + docs/rules/html-element-name-kebab-casing.md | 34 +++ lib/index.js | 1 + lib/rules/html-element-name-kebab-casing.js | 83 +++++++ .../rules/html-element-name-kebab-casing.js | 204 ++++++++++++++++++ 5 files changed, 323 insertions(+) create mode 100644 docs/rules/html-element-name-kebab-casing.md create mode 100644 lib/rules/html-element-name-kebab-casing.js create mode 100644 tests/lib/rules/html-element-name-kebab-casing.js diff --git a/README.md b/README.md index 015e2922b..c439efcb6 100644 --- a/README.md +++ b/README.md @@ -209,6 +209,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi |:---|:--------|:------------| | :wrench: | [vue/html-closing-bracket-newline](./docs/rules/html-closing-bracket-newline.md) | require or disallow a line break before tag's closing brackets | | :wrench: | [vue/html-closing-bracket-spacing](./docs/rules/html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets | +| :wrench: | [vue/html-element-name-kebab-casing](./docs/rules/html-element-name-kebab-casing.md) | enforce the tag name of the Vue component and HTML element to be `kebab-case` | | :wrench: | [vue/prop-name-casing](./docs/rules/prop-name-casing.md) | enforce specific casing for the Prop name in Vue components | | :wrench: | [vue/script-indent](./docs/rules/script-indent.md) | enforce consistent indentation in `