absolvent / gore-gulp

Simple way to run and maintain React.js projects without any configuration.
MIT License
1 stars 0 forks source link

Allow ternary operators #36

Closed zangrafx closed 9 years ago

zangrafx commented 9 years ago

It would be nice to change:

"no-nested-ternary": 2
"no-ternary": 2

to:

"no-nested-ternary": 2
"no-ternary": 0
"no-unneeded-ternary": 2

no-unneeded-ternary is a new feature of eslint 0.21

This would help to keep JSX simpler and would still limit bad practices. Example from react docs:

React.render(<div id={condition ? 'msg' : ''}>Hello World!</div>, mountNode);