diff --git a/docs/rules/README.md b/docs/rules/README.md index 49a6c6389..127a622d3 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -396,6 +396,7 @@ The following rules extend the rules provided by ESLint itself and apply them to | [vue/object-curly-newline](./object-curly-newline.md) | enforce consistent line breaks after opening and before closing braces | :wrench: | | [vue/object-curly-spacing](./object-curly-spacing.md) | enforce consistent spacing inside braces | :wrench: | | [vue/object-property-newline](./object-property-newline.md) | enforce placing object properties on separate lines | :wrench: | +| [vue/object-shorthand](./object-shorthand.md) | require or disallow method and property shorthand syntax for object literals | :wrench: | | [vue/operator-linebreak](./operator-linebreak.md) | enforce consistent linebreak style for operators | :wrench: | | [vue/prefer-template](./prefer-template.md) | require template literals instead of string concatenation | :wrench: | | [vue/space-in-parens](./space-in-parens.md) | enforce consistent spacing inside parentheses | :wrench: | diff --git a/docs/rules/object-shorthand.md b/docs/rules/object-shorthand.md new file mode 100644 index 000000000..e2e9249b5 --- /dev/null +++ b/docs/rules/object-shorthand.md @@ -0,0 +1,27 @@ +--- +pageClass: rule-details +sidebarDepth: 0 +title: vue/object-shorthand +description: require or disallow method and property shorthand syntax for object literals +--- +# vue/object-shorthand + +> require or disallow method and property shorthand syntax for object literals + +- :exclamation: ***This rule has not been released yet.*** +- :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 [object-shorthand] rule but it applies to the expressions in `