diff --git a/docs/rules/README.md b/docs/rules/README.md index 57890decd..9b32f097d 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -292,6 +292,7 @@ For example: | [vue/no-boolean-default](./no-boolean-default.md) | disallow boolean defaults | :wrench: | | [vue/no-duplicate-attr-inheritance](./no-duplicate-attr-inheritance.md) | enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"` | | | [vue/no-empty-pattern](./no-empty-pattern.md) | disallow empty destructuring patterns | | +| [vue/no-extra-parens](./no-extra-parens.md) | disallow unnecessary parentheses | :wrench: | | [vue/no-irregular-whitespace](./no-irregular-whitespace.md) | disallow irregular whitespace | | | [vue/no-potential-component-option-typo](./no-potential-component-option-typo.md) | disallow a potential typo in your component property | | | [vue/no-reserved-component-names](./no-reserved-component-names.md) | disallow the use of reserved names in component definitions | | diff --git a/docs/rules/no-extra-parens.md b/docs/rules/no-extra-parens.md new file mode 100644 index 000000000..4726907d3 --- /dev/null +++ b/docs/rules/no-extra-parens.md @@ -0,0 +1,45 @@ +--- +pageClass: rule-details +sidebarDepth: 0 +title: vue/no-extra-parens +description: disallow unnecessary parentheses +--- +# vue/no-extra-parens +> disallow unnecessary parentheses + +- :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 [no-extra-parens] rule but it applies to the expressions in `