@@ -7,6 +7,7 @@ module.exports = {
7
7
8
8
// Possible Errors
9
9
'no-await-in-loop' : 0 , // disallow `await` inside of loops
10
+ 'no-compare-neg-zero' : 1 , // disallow comparing against -0
10
11
'no-cond-assign' : 2 , // disallow assignment operators in conditional expressions
11
12
'no-console' : 0 , // disallow the use of `console`
12
13
'no-constant-condition' : 2 , // disallow constant expressions in conditions
@@ -96,7 +97,7 @@ module.exports = {
96
97
'no-sequences' : 1 , // disallow comma operators
97
98
'no-throw-literal' : 1 , // disallow throwing literals as exceptions
98
99
'no-unmodified-loop-condition' : 1 , // disallow unmodified loop conditions
99
- 'no-unused-expressions' : 2 , // disallow unused expressions
100
+ 'no-unused-expressions' : [ 2 , { allowTaggedTemplates : true , allowShortCircuit : true , allowTernary : true } ] , // disallow unused expressions
100
101
'no-unused-labels' : 2 , // disallow unused labels
101
102
'no-useless-call' : 1 , // disallow unnecessary calls to `.call()` and `.apply()`
102
103
'no-useless-concat' : 1 , // disallow unnecessary concatenation of literals or template literals
@@ -201,6 +202,7 @@ module.exports = {
201
202
'no-underscore-dangle' : 0 , // disallow dangling underscores in identifiers
202
203
'no-unneeded-ternary' : 1 , // disallow ternary operators when simpler alternatives exist
203
204
'no-whitespace-before-property' : 1 , // disallow whitespace before properties
205
+ 'nonblock-statement-body-position' : 1 , // enforce the location of single-line statements
204
206
'object-curly-newline' : 0 , // enforce consistent line breaks inside braces
205
207
'object-curly-spacing' : 0 , // enforce consistent spacing inside braces
206
208
'object-property-newline' : 0 , // enforce placing object properties on separate lines
0 commit comments