Skip to content

Commit 0c79969

Browse files
committed
feat(base): support ESLint 3.18.0
1 parent 7798dbc commit 0c79969

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rules/base.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77

88
// Possible Errors
99
'no-await-in-loop': 0, // disallow `await` inside of loops
10+
'no-compare-neg-zero': 1, // disallow comparing against -0
1011
'no-cond-assign': 2, // disallow assignment operators in conditional expressions
1112
'no-console': 0, // disallow the use of `console`
1213
'no-constant-condition': 2, // disallow constant expressions in conditions
@@ -96,7 +97,7 @@ module.exports = {
9697
'no-sequences': 1, // disallow comma operators
9798
'no-throw-literal': 1, // disallow throwing literals as exceptions
9899
'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
100101
'no-unused-labels': 2, // disallow unused labels
101102
'no-useless-call': 1, // disallow unnecessary calls to `.call()` and `.apply()`
102103
'no-useless-concat': 1, // disallow unnecessary concatenation of literals or template literals
@@ -201,6 +202,7 @@ module.exports = {
201202
'no-underscore-dangle': 0, // disallow dangling underscores in identifiers
202203
'no-unneeded-ternary': 1, // disallow ternary operators when simpler alternatives exist
203204
'no-whitespace-before-property': 1, // disallow whitespace before properties
205+
'nonblock-statement-body-position': 1, // enforce the location of single-line statements
204206
'object-curly-newline': 0, // enforce consistent line breaks inside braces
205207
'object-curly-spacing': 0, // enforce consistent spacing inside braces
206208
'object-property-newline': 0, // enforce placing object properties on separate lines

0 commit comments

Comments
 (0)