Linter rules for single or multiline object literals

前端 未结 0 838
执笔经年
执笔经年 2021-01-23 19:04

I try to set up ESLint rules for both linting and autoformatting of object literal.

This snippet should cause linter error:

let obj = {    foo: 1,
  bar: 2         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题