From ed25637b92e864bab4cd75412c9d9739e91e6557 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 28 Mar 2016 20:52:53 -0700 Subject: [PATCH] [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config`, `nsp`, `core-js` --- .jscs.json | 9 ++++++++- package.json | 12 ++++++------ test/.eslintrc | 5 +++++ why.js | 4 +++- 4 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 test/.eslintrc diff --git a/.jscs.json b/.jscs.json index 969033d..2fffb02 100644 --- a/.jscs.json +++ b/.jscs.json @@ -157,6 +157,13 @@ "requireImportAlphabetized": false, - "disallowSpacesInsideTemplateStringPlaceholders": true + "requireSpaceBeforeObjectValues": true, + "requireSpaceBeforeDestructuredValues": true, + + "disallowSpacesInsideTemplateStringPlaceholders": true, + + "disallowArrayDestructuringReturn": false, + + "requireNewlineBeforeSingleStatementsInIf": false } diff --git a/package.json b/package.json index 33cc795..4ad6900 100644 --- a/package.json +++ b/package.json @@ -48,20 +48,20 @@ "object.entries": "^1.0.3" }, "devDependencies": { - "tape": "^4.4.0", + "tape": "^4.5.1", "covert": "^1.1.0", - "jscs": "^2.10.1", + "jscs": "^2.11.0", "foreach": "^2.0.5", "object.entries": "^1.0.3", "make-arrow-function": "^1.1.0", "make-generator-function": "^1.1.0", "semver": "^5.1.0", - "eslint": "^2.2.0", - "@ljharb/eslint-config": "^2.1.1", - "nsp": "^2.2.0", + "eslint": "^2.5.3", + "@ljharb/eslint-config": "^2.2.0", + "nsp": "^2.2.2", "replace": "^0.3.0", "es6-shim": "^0.35.0", - "core-js": "^2.1.3" + "core-js": "^2.2.1" }, "testling": { "files": "test/native.js", diff --git a/test/.eslintrc b/test/.eslintrc new file mode 100644 index 0000000..168cdf8 --- /dev/null +++ b/test/.eslintrc @@ -0,0 +1,5 @@ +{ + "rules": { + "max-statements-per-line": [2, { "max": 2 }] + } +} diff --git a/why.js b/why.js index c07cdec..5be901a 100644 --- a/why.js +++ b/why.js @@ -283,7 +283,9 @@ module.exports = function whyNotEqual(value, other) { } } for (key in other) { - if (has(other, key) && !has(value, key)) { return 'second argument has key "' + key + '"; first does not'; } + if (has(other, key) && !has(value, key)) { + return 'second argument has key "' + key + '"; first does not'; + } } return ''; }