Skip to content

Commit

Permalink
Disallow Unused Expressions (no-unused-expressions)
Browse files Browse the repository at this point in the history
Allow short circuiting and ternary expressions, since those are very
common but not ideal IMO.

Fixes: standard/standard#690
  • Loading branch information
feross committed Feb 9, 2017
1 parent d617a9c commit 1e3975c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"no-unused-vars": ["error", { "vars": "all", "args": "none" }],
"no-useless-call": "error",
"no-useless-computed-key": "error",
Expand Down

0 comments on commit 1e3975c

Please sign in to comment.