From a74dd594fa1f9e72ae305a0bb07c620b96eeb8e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Csord=C3=A1s?= Date: Tue, 19 Oct 2021 01:42:28 +0200 Subject: [PATCH] Add `multi-word-component-names` rule (#1661) * Add `multi-word-component-names` rule * Fix review comments for `multi-word-component-names` rule --- docs/rules/README.md | 1 + docs/rules/multi-word-component-names.md | 84 ++++++ lib/index.js | 1 + lib/rules/multi-word-component-names.js | 115 ++++++++ tests/lib/rules/multi-word-component-names.js | 253 ++++++++++++++++++ 5 files changed, 454 insertions(+) create mode 100644 docs/rules/multi-word-component-names.md create mode 100644 lib/rules/multi-word-component-names.js create mode 100644 tests/lib/rules/multi-word-component-names.js diff --git a/docs/rules/README.md b/docs/rules/README.md index 3f65e92c4..401329378 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -296,6 +296,7 @@ For example: | [vue/html-comment-content-spacing](./html-comment-content-spacing.md) | enforce unified spacing in HTML comments | :wrench: | | [vue/html-comment-indent](./html-comment-indent.md) | enforce consistent indentation in HTML comments | :wrench: | | [vue/match-component-file-name](./match-component-file-name.md) | require component name property to match its file name | | +| [vue/multi-word-component-names](./multi-word-component-names.md) | require component names to be always multi-word | | | [vue/new-line-between-multi-line-property](./new-line-between-multi-line-property.md) | enforce new lines between multi-line properties in Vue components | :wrench: | | [vue/next-tick-style](./next-tick-style.md) | enforce Promise or callback style in `nextTick` | :wrench: | | [vue/no-bare-strings-in-template](./no-bare-strings-in-template.md) | disallow the use of bare strings in `