vigour-io / builder-boy

👲🏽 Build and watch es modules FAST 👲🏽
6 stars 1 forks source link

[JSX] Support for boolean attributes shorthand #76

Closed youzi closed 7 years ago

youzi commented 7 years ago

jsx supports both of these for "attribute:true":

var Hello = <Hello personal={true} />;

and

var Hello = <Hello personal />;

Should we support both as well (meaning we set undefined attributes vals to true)?

more info: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md

youzi commented 7 years ago

could be nice, since some linters (like sublime-babel) default to enforce the latter syntax