From 9aac5c582e65ca232cdac6cd1412523800e4be8a Mon Sep 17 00:00:00 2001 From: ota Date: Thu, 29 Mar 2018 23:56:47 +0900 Subject: [PATCH 1/3] [New] Add `vue/html-tag-attrs-content-newline` --- README.md | 1 + docs/rules/html-tag-attrs-content-newline.md | 62 +++ lib/index.js | 1 + lib/rules/html-tag-attrs-content-newline.js | 149 +++++++ .../rules/html-tag-attrs-content-newline.js | 379 ++++++++++++++++++ 5 files changed, 592 insertions(+) create mode 100644 docs/rules/html-tag-attrs-content-newline.md create mode 100644 lib/rules/html-tag-attrs-content-newline.js create mode 100644 tests/lib/rules/html-tag-attrs-content-newline.js diff --git a/README.md b/README.md index 7870ed231..5ac37ddc1 100644 --- a/README.md +++ b/README.md @@ -230,6 +230,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi | | Rule ID | Description | |:---|:--------|:------------| | :wrench: | [vue/component-name-in-template-casing](./docs/rules/component-name-in-template-casing.md) | enforce specific casing for the component naming style in template | +| :wrench: | [vue/html-tag-attrs-content-newline](./docs/rules/html-tag-attrs-content-newline.md) | require a line break before and after contents whenever the HTML tag has any attribute | | :wrench: | [vue/script-indent](./docs/rules/script-indent.md) | enforce consistent indentation in `