From 0c79969bd729fc4da9e21c4b842027f271af7017 Mon Sep 17 00:00:00 2001 From: Gabriel Lebec Date: Fri, 24 Mar 2017 12:35:50 -0400 Subject: [PATCH] feat(base): support ESLint 3.18.0 --- rules/base.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rules/base.js b/rules/base.js index 641d4bf..07140d9 100644 --- a/rules/base.js +++ b/rules/base.js @@ -7,6 +7,7 @@ module.exports = { // Possible Errors 'no-await-in-loop': 0, // disallow `await` inside of loops + 'no-compare-neg-zero': 1, // disallow comparing against -0 'no-cond-assign': 2, // disallow assignment operators in conditional expressions 'no-console': 0, // disallow the use of `console` 'no-constant-condition': 2, // disallow constant expressions in conditions @@ -96,7 +97,7 @@ module.exports = { 'no-sequences': 1, // disallow comma operators 'no-throw-literal': 1, // disallow throwing literals as exceptions 'no-unmodified-loop-condition': 1, // disallow unmodified loop conditions - 'no-unused-expressions': 2, // disallow unused expressions + 'no-unused-expressions': [2, {allowTaggedTemplates: true, allowShortCircuit: true, allowTernary: true}], // disallow unused expressions 'no-unused-labels': 2, // disallow unused labels 'no-useless-call': 1, // disallow unnecessary calls to `.call()` and `.apply()` 'no-useless-concat': 1, // disallow unnecessary concatenation of literals or template literals @@ -201,6 +202,7 @@ module.exports = { 'no-underscore-dangle': 0, // disallow dangling underscores in identifiers 'no-unneeded-ternary': 1, // disallow ternary operators when simpler alternatives exist 'no-whitespace-before-property': 1, // disallow whitespace before properties + 'nonblock-statement-body-position': 1, // enforce the location of single-line statements 'object-curly-newline': 0, // enforce consistent line breaks inside braces 'object-curly-spacing': 0, // enforce consistent spacing inside braces 'object-property-newline': 0, // enforce placing object properties on separate lines