mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-15 06:48:16 +08:00
Relaxed eslint rule no-unused-expressions (#724)
Now allows the use of short circuit and ternary expressions.
This commit is contained in:
committed by
Dan Abramov
parent
91b32a2769
commit
90e3cc1fb2
@@ -127,7 +127,10 @@ module.exports = {
|
||||
'no-undef': 'error',
|
||||
'no-unexpected-multiline': 'warn',
|
||||
'no-unreachable': 'warn',
|
||||
'no-unused-expressions': 'warn',
|
||||
'no-unused-expressions': ['warn', {
|
||||
'allowShortCircuit': true,
|
||||
'allowTernary': true
|
||||
}],
|
||||
'no-unused-labels': 'warn',
|
||||
'no-unused-vars': ['warn', {
|
||||
vars: 'local',
|
||||
|
||||
Reference in New Issue
Block a user