# array-bracket-newline

Rule `vue/array-bracket-newline`. Enforce linebreaks after opening and before closing array brackets in `<template>`

- Source: vue
- Technologies: Vue
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #2045 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/array-bracket-newline` | no | safe | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/array-bracket-newline.html) |

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/array-bracket-newline": "error",
    },
  },
];
```

## Related rules

- [eslint/array-bracket-newline](https://lintradar.dev/rules/eslint/array-bracket-newline.md): Enforce linebreaks after opening and before closing array brackets
- [vue/array-element-newline](https://lintradar.dev/rules/vue/array-element-newline.md): Enforce line breaks after each array element in `<template>`
- [vue/func-call-spacing](https://lintradar.dev/rules/vue/func-call-spacing.md): Require or disallow spacing between function identifiers and their invocations in `<template>`
- [vue/html-comment-content-newline](https://lintradar.dev/rules/vue/html-comment-content-newline.md): Enforce unified line break in HTML comments
- [vue/html-comment-indent](https://lintradar.dev/rules/vue/html-comment-indent.md): Enforce consistent indentation in HTML comments
- [vue/match-component-import-name](https://lintradar.dev/rules/vue/match-component-import-name.md): Require the registered component name to match the imported component name

---

Web page: https://lintradar.dev/rules/vue/array-bracket-newline. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
