From 96a830a5bdd614bdb4bec0779777df71b67d382c Mon Sep 17 00:00:00 2001 From: ota Date: Thu, 29 Mar 2018 23:56:47 +0900 Subject: [PATCH 1/5] [New] Add `vue/html-content-newline` (#4) --- README.md | 1 + docs/rules/html-content-newline.md | 86 ++++ lib/index.js | 1 + lib/rules/html-content-newline.js | 147 ++++++ tests/lib/rules/html-content-newline.js | 565 ++++++++++++++++++++++++ 5 files changed, 800 insertions(+) create mode 100644 docs/rules/html-content-newline.md create mode 100644 lib/rules/html-content-newline.js create mode 100644 tests/lib/rules/html-content-newline.js diff --git a/README.md b/README.md index 2467f256e..48a910a17 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-content-newline](./docs/rules/html-content-newline.md) | require or disallow a line break before and after html contents | | :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 `