Skip to content

eslint的规则配置与prettier格式化冲突 #29

Closed
@zhuchentong

Description

@zhuchentong

Version

latest

Vue Version

latest

Link to minimal reproduction

6918a74cf00562e4564f9330c8a17d1

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产生警告

期望删除相关配置,单行不需要以分号结尾

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions