Closed zangrafx closed 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
no-unneeded-ternary
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);
It would be nice to change:
to:
no-unneeded-ternary
is a new feature of eslint 0.21This would help to keep JSX simpler and would still limit bad practices. Example from react docs: