-
Notifications
You must be signed in to change notification settings - Fork 286
eslint的规则配置与prettier格式化冲突 #29
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Version
latest
Vue Version
latest
Link to minimal reproduction
Step to reproduce
在项目中定义单行对象即可出现错误提示
const data = {item:1}
What is expected
No response
What is actually happening
No response
Any additional comments (optional)
eslint中·@typescript-eslint/member-delimiter-style这个中配置为
singleline: {
delimiter: 'semi',
requireLast: true
}
要求在对象在单行模式下以分号结尾,但是prettier会自动删除对象结尾的分号,导致eslint产生警告
期望删除相关配置,单行不需要以分号结尾
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
