Appearance
vue/array-bracket-newline
在
<template>
中强制在数组括号打开后和关闭前换行
- 🔧 command line 上的
--fix
选项可以自动修复此规则报告的一些问题。
此规则与 @stylistic/array-bracket-newline 规则相同,但适用于 <template>
中的表达式。
¥This rule is the same rule as @stylistic/array-bracket-newline rule but it applies to the expressions in <template>
.
此规则扩展了 @stylistic/eslint-plugin 所具有的规则,但如果未安装 @stylistic/eslint-plugin,则此规则从 ESLint 核心中提取并扩展相同的规则。但是,如果两者都未找到,则无法使用该规则。
¥This rule extends the rule that @stylistic/eslint-plugin has, but if @stylistic/eslint-plugin is not installed, this rule extracts and extends the same rule from ESLint core. However, if neither is found, the rule cannot be used.
📚 扩展阅读
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v7.1.0 中引入
¥This rule was introduced in eslint-plugin-vue v7.1.0
🔍代码实现
¥🔍 Implementation
使用 ❤️ 来自 ESLint Stylistic
¥Taken with ❤️ from ESLint Stylistic