digitalbazaar / eslint-config-digitalbazaar

BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Need a rule to prevent incorrect destructuring format #23

Open mattcollier opened 5 years ago

mattcollier commented 5 years ago

this should not be allowed:

const {
  foo, bar} = myObject;

This should be formatted as:

const {foo, bar} = 
  myObject;

or

const {
  foo, bar
} = myObject;
aljones15 commented 5 years ago

https://eslint.org/docs/rules/object-curly-newline