Commit 90e3cc1f authored by Aaron Cannon's avatar Aaron Cannon Committed by Dan Abramov
Browse files

Relaxed eslint rule no-unused-expressions (#724)

Now allows the use of short circuit and ternary expressions.
parent 91b32a27
No related merge requests found
Showing with 4 additions and 1 deletion
+4 -1
...@@ -127,7 +127,10 @@ module.exports = { ...@@ -127,7 +127,10 @@ module.exports = {
'no-undef': 'error', 'no-undef': 'error',
'no-unexpected-multiline': 'warn', 'no-unexpected-multiline': 'warn',
'no-unreachable': 'warn', 'no-unreachable': 'warn',
'no-unused-expressions': 'warn', 'no-unused-expressions': ['warn', {
'allowShortCircuit': true,
'allowTernary': true
}],
'no-unused-labels': 'warn', 'no-unused-labels': 'warn',
'no-unused-vars': ['warn', { 'no-unused-vars': ['warn', {
vars: 'local', vars: 'local',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment