mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 21:38:03 -05:00
[eslint config] [base] no-unused-expressions: flesh out options
Fixes #963.
This commit is contained in:
@@ -189,7 +189,10 @@ module.exports = {
|
||||
'no-unmodified-loop-condition': 0,
|
||||
|
||||
// disallow usage of expressions in statement position
|
||||
'no-unused-expressions': 2,
|
||||
'no-unused-expressions': [2, {
|
||||
allowShortCircuit: false,
|
||||
allowTernary: false,
|
||||
}],
|
||||
|
||||
// disallow unused labels
|
||||
// http://eslint.org/docs/rules/no-unused-labels
|
||||
|
||||
Reference in New Issue
Block a user