From fa2641473516a6cfb4969d364abac3615af783e4 Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Tue, 29 Jan 2019 11:29:44 +0900 Subject: [PATCH] =?UTF-8?q?=E2=AD=90=EF=B8=8FNew:=20Add=20`vue/camelcase`?= =?UTF-8?q?=20rule=20(#772)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/rules/README.md | 1 + docs/rules/camelcase.md | 21 +++++++++++++ lib/index.js | 1 + lib/rules/camelcase.js | 9 ++++++ tests/lib/rules/camelcase.js | 57 ++++++++++++++++++++++++++++++++++++ 5 files changed, 89 insertions(+) create mode 100644 docs/rules/camelcase.md create mode 100644 lib/rules/camelcase.js create mode 100644 tests/lib/rules/camelcase.js diff --git a/docs/rules/README.md b/docs/rules/README.md index 4339b1e70..caa45f6ce 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -143,6 +143,7 @@ For example: | [vue/arrow-spacing](./arrow-spacing.md) | enforce consistent spacing before and after the arrow in arrow functions | :wrench: | | [vue/block-spacing](./block-spacing.md) | disallow or enforce spaces inside of blocks after opening block and before closing block | :wrench: | | [vue/brace-style](./brace-style.md) | enforce consistent brace style for blocks | :wrench: | +| [vue/camelcase](./camelcase.md) | enforce camelcase naming convention | | | [vue/component-name-in-template-casing](./component-name-in-template-casing.md) | enforce specific casing for the component naming style in template | :wrench: | | [vue/eqeqeq](./eqeqeq.md) | require the use of `===` and `!==` | :wrench: | | [vue/key-spacing](./key-spacing.md) | enforce consistent spacing between keys and values in object literal properties | :wrench: | diff --git a/docs/rules/camelcase.md b/docs/rules/camelcase.md new file mode 100644 index 000000000..c54c44457 --- /dev/null +++ b/docs/rules/camelcase.md @@ -0,0 +1,21 @@ +--- +pageClass: rule-details +sidebarDepth: 0 +title: vue/camelcase +description: enforce camelcase naming convention +--- +# vue/camelcase +> enforce camelcase naming convention + +This rule is the same rule as core [camelcase] rule but it applies to the expressions in `