From 3a8dd2ae9c0b579ada9f40573e658d7cd032a37a Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sat, 4 Mar 2017 10:11:28 +0100 Subject: [PATCH] feat: add rules from eslint 3.17.0 BREAKING CHANGE: Old code may cause errors with this new configuration --- es5.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/es5.js b/es5.js index e825150..793bca4 100644 --- a/es5.js +++ b/es5.js @@ -16,6 +16,8 @@ module.exports = { // # Possible Errors // The following rules point out areas where you might have made mistakes. + // disallow comparing against -0 + 'no-compare-neg-zero': 2, // disallow assignment in conditional expressions 'no-cond-assign': 2, // disallow use of console @@ -663,6 +665,8 @@ module.exports = { 'no-unneeded-ternary': 2, // disallow whitespace before properties 'no-whitespace-before-property': 2, + // enforce the location of single-line statements + 'nonblock-statement-body-position': 0, // enforce consistent line breaks inside braces 'object-curly-newline': 0, // require or disallow padding inside curly braces diff --git a/package.json b/package.json index 3cfbabb..90b37d7 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ } }, "dependencies": { - "eslint": "^3.15.0", + "eslint": "^3.17.0", "eslint-plugin-filenames": "^1.1.0" }, "devDependencies": {