From 5139dd8260ece6e58bfe28eeb54f30b231562501 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 29 May 2016 08:46:48 +0200 Subject: [PATCH] [Dev Deps] update `eslint`, `@ljharb/eslint-config` --- .eslintrc | 1 + package.json | 4 ++-- test/native.js | 2 ++ test/why.js | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index 17ca4f6..54254c3 100644 --- a/.eslintrc +++ b/.eslintrc @@ -10,6 +10,7 @@ "max-depth": [2, 5], "max-nested-callbacks": [2, 3], "max-statements": [1, 10], + "max-statements-per-line": [2, { "max": 2 }], "no-extra-parens": [1], "no-implicit-coercion": [2, { "boolean": false, diff --git a/package.json b/package.json index 397c3bb..61c708c 100644 --- a/package.json +++ b/package.json @@ -58,8 +58,8 @@ "make-arrow-function": "^1.1.0", "make-generator-function": "^1.1.0", "semver": "^5.1.0", - "eslint": "^2.10.2", - "@ljharb/eslint-config": "^4.0.1", + "eslint": "^2.11.0", + "@ljharb/eslint-config": "^5.0.0", "nsp": "^2.4.0", "replace": "^0.3.0", "es6-shim": "^0.35.1", diff --git a/test/native.js b/test/native.js index f15db06..1513c0f 100644 --- a/test/native.js +++ b/test/native.js @@ -317,6 +317,7 @@ test('iterables', function (t) { st.test('Sets with strings as iterables', function (sst) { var ab; + // eslint-disable-next-line max-statements-per-line try { ab = new Set('ab'); } catch (e) { ab = new Set(); } // node 0.12 throws when given a string if (ab.size !== 2) { // work around IE 11 (and others) bug accepting iterables @@ -324,6 +325,7 @@ test('iterables', function (t) { ab.add('b'); } var ac; + // eslint-disable-next-line max-statements-per-line try { ac = new Set('ac'); } catch (e) { ac = new Set(); } // node 0.12 throws when given a string if (ab.size !== 2) { // work around IE 11 (and others) bug accepting iterables diff --git a/test/why.js b/test/why.js index e475e43..8cb76ea 100644 --- a/test/why.js +++ b/test/why.js @@ -522,6 +522,7 @@ test('iterables', function (t) { st.test('Sets with strings as iterables', function (sst) { var ab; + // eslint-disable-next-line max-statements-per-line try { ab = new Set('ab'); } catch (e) { ab = new Set(); } // node 0.12 throws when given a string if (ab.size !== 2) { // work around IE 11 (and others) bug accepting iterables @@ -529,6 +530,7 @@ test('iterables', function (t) { ab.add('b'); } var ac; + // eslint-disable-next-line max-statements-per-line try { ac = new Set('ac'); } catch (e) { ac = new Set(); } // node 0.12 throws when given a string if (ac.size !== 2) { // work around IE 11 (and others) bug accepting iterables