Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 463 Bytes

curly.md

File metadata and controls

26 lines (21 loc) · 463 Bytes

curly

Anthony's opinionated taste with curly. Simliar to eslint's builtin curly: ['error', 'multi-or-nest', 'consistent'] but allows both curly and non-curly on one-liner. This rule is not configurable.

Rule Details

// 👍 ok
if (foo) {
  bar()
}

// 👍 ok
if (foo)
  bar()
// 👎 bad
if (foo)
  const obj = {
    bar: 'bar'
  }