diff --git a/docs/rules/README.md b/docs/rules/README.md index caa45f6ce..f7e7d7ec0 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -144,6 +144,7 @@ For example: | [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/comma-dangle](./comma-dangle.md) | require or disallow trailing commas | :wrench: | | [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/comma-dangle.md b/docs/rules/comma-dangle.md new file mode 100644 index 000000000..0ccdf1518 --- /dev/null +++ b/docs/rules/comma-dangle.md @@ -0,0 +1,23 @@ +--- +pageClass: rule-details +sidebarDepth: 0 +title: vue/comma-dangle +description: require or disallow trailing commas +--- +# vue/comma-dangle +> require or disallow trailing commas + +- :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. + +This rule is the same rule as core [comma-dangle] rule but it applies to the expressions in `