![](/img/trans.png)
[英]How to configure prettier such that it formats jsx attributes in multiple lines in VSCODE?
[英]How to configure vscode to automatically add new lines between functions
在这里,我有两个函数,它们之间没有界限:
const test = () => {
console.log('test')
}
const test = () => {
console.log('test')
}
保存后,我希望它自动格式化并在这两个函数之间添加新行,如下所示:
const test = () => {
console.log('test')
}
// new line
const test = () => {
console.log('test')
}
这是 eslint 规则:
"lines-between-class-members": ["error", "always"],
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.