简体   繁体   English

如何配置linter来格式化{{or}}与变量之间的空间

[英]How to configure the linter for formatting space between {{or}} and variables

I have to configure the linter rules, so that it can detect space in html between "{{ value }}" 我必须配置linter规则,以便它可以检测“ {{value}}”之间的html中的空格

for example, this would be ok 例如,这没关系
<div>{{ value }}</div>
and the error would be wrong 错误将是错误的
<div>{{value}}</div>

I use: eslint-plugin-vue: 5.2.2 我使用:eslint-plugin-vue:5.2.2

What rule is responsible for it? 什么规则负责?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何为 3 个空格配置 Eslint 缩进规则? - How to configure Eslint indent rules for 3 space? tsserver 和 eslint 作为 linter 有什么区别? - What's the difference between tsserver and eslint as a linter? 如何为React Native配置Linter? - How to config Linter for React Native? 如何配置 ESLint 以捕获未声明的局部变量 - How to configure ESLint to catch undeclared local variables 如何在“codesandbox.io”上配置 ESLint / Prettier 格式规则 - How to configure ESLint / Prettier formatting rules on "codesandbox.io" 获取 linter 错误“Unexpected token =”,对先前声明的变量进行解构赋值 - Getting linter error “Unexpected token =” with destructuring assignment on previously declared variables 如何删除Sublime Linter中的弹出警告? - How to remove popup warning in Sublime Linter? 如何使用 linter 在 vue 中强制执行脚本、模板和样式标签的顺序 - How to enforce script, template and style tags order in vue with linter 如何在我的 React linter 中修复“声明的道具类型中的错字:标题”? - How to fix "Typo in declared prop type: title" in my React linter? 如何在Atom中正确设置Airbnb的javascript linter? - How to properly setup the Airbnb's javascript linter in Atom?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM