From f923ddd17f6a51a2a6d79d366126c81c89fe5575 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Sat, 10 Aug 2019 11:50:08 +0900 Subject: [PATCH 1/2] Drop autofix of prop-name-casing. --- docs/rules/README.md | 2 +- docs/rules/prop-name-casing.md | 5 +-- lib/rules/prop-name-casing.js | 9 +---- tests/lib/rules/prop-name-casing.js | 59 ----------------------------- 4 files changed, 5 insertions(+), 70 deletions(-) diff --git a/docs/rules/README.md b/docs/rules/README.md index 97117319f..a47600386 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -98,7 +98,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi | [vue/no-multi-spaces](./no-multi-spaces.md) | disallow multiple spaces | :wrench: | | [vue/no-spaces-around-equal-signs-in-attribute](./no-spaces-around-equal-signs-in-attribute.md) | disallow spaces around equal signs in attribute | :wrench: | | [vue/no-template-shadow](./no-template-shadow.md) | disallow variable declarations from shadowing variables declared in the outer scope | | -| [vue/prop-name-casing](./prop-name-casing.md) | enforce specific casing for the Prop name in Vue components | :wrench: | +| [vue/prop-name-casing](./prop-name-casing.md) | enforce specific casing for the Prop name in Vue components | | | [vue/require-default-prop](./require-default-prop.md) | require default value for props | | | [vue/require-prop-types](./require-prop-types.md) | require type definitions in props | | | [vue/singleline-html-element-content-newline](./singleline-html-element-content-newline.md) | require a line break before and after the contents of a singleline element | :wrench: | diff --git a/docs/rules/prop-name-casing.md b/docs/rules/prop-name-casing.md index 846766c66..def33cd5e 100644 --- a/docs/rules/prop-name-casing.md +++ b/docs/rules/prop-name-casing.md @@ -8,13 +8,12 @@ description: enforce specific casing for the Prop name in Vue components > enforce specific casing for the Prop name in Vue components - :gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`. -- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule. ## :book: Rule Details This rule enforce proper casing of props in vue components(camelCase). - + ```vue