Skip to content

Commit

Permalink
Turn on no-mixed-operators rule
Browse files Browse the repository at this point in the history
  • Loading branch information
darthtrevino committed Jan 25, 2017
1 parent 2961b41 commit f7832d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion examples/.eslintrc
Expand Up @@ -7,7 +7,6 @@
"indent": "off",
"jsx-a11y/label-has-for": "off",
"max-len": "off",
"no-mixed-operators": "off",
"no-param-reassign": "off",
"object-curly-spacing": "off",
"object-shorthand": "off",
Expand Down
2 changes: 1 addition & 1 deletion examples/03 Nesting/Drop Targets/Dustbin.js
Expand Up @@ -61,7 +61,7 @@ export default class Dustbin extends Component {
const text = greedy ? 'greedy' : 'not greedy';
let backgroundColor = 'rgba(0, 0, 0, .5)';

if (isOverCurrent || isOver && greedy) {
if (isOverCurrent || (isOver && greedy)) {
backgroundColor = 'darkgreen';
}

Expand Down

0 comments on commit f7832d1

Please sign in to comment.