diff --git a/docs/rules/README.md b/docs/rules/README.md index 9e0ac610b..f2d9b8476 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -326,6 +326,7 @@ The following rules extend the rules provided by ESLint itself and apply them to | Rule ID | Description | | |:--------|:------------|:---| +| [vue/array-bracket-newline](./array-bracket-newline.md) | enforce linebreaks after opening and before closing array brackets | :wrench: | | [vue/array-bracket-spacing](./array-bracket-spacing.md) | enforce consistent spacing inside array brackets | :wrench: | | [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: | diff --git a/docs/rules/array-bracket-newline.md b/docs/rules/array-bracket-newline.md new file mode 100644 index 000000000..2bc2a0886 --- /dev/null +++ b/docs/rules/array-bracket-newline.md @@ -0,0 +1,25 @@ +--- +pageClass: rule-details +sidebarDepth: 0 +title: vue/array-bracket-newline +description: enforce linebreaks after opening and before closing array brackets +--- +# vue/array-bracket-newline +> enforce linebreaks after opening and before closing array brackets + +- :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 [array-bracket-newline] rule but it applies to the expressions in `