From 13c5dd1fa7762cf509deafde12b14fe65e6c0c17 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 3 Nov 2018 00:11:53 -0700 Subject: [PATCH] [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `nsp`, `tape` --- package.json | 8 ++++---- test/.eslintrc | 3 +++ test/index.js | 4 ++-- test/shimmed.js | 4 ++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 317d44b..ea710ae 100644 --- a/package.json +++ b/package.json @@ -46,14 +46,14 @@ }, "devDependencies": { "@es-shims/api": "^2.1.2", - "@ljharb/eslint-config": "^9.0.1", + "@ljharb/eslint-config": "^13.0.0", "array-map": "^0.0.0", "covert": "^1.1.0", - "eslint": "^3.11.1", + "eslint": "^5.8.0", "jscs": "^3.0.7", - "nsp": "^2.6.2", + "nsp": "^3.2.1", "object-keys": "^1.0.12", - "tape": "^4.6.3" + "tape": "^4.9.1" }, "testling": { "files": "test/index.js", diff --git a/test/.eslintrc b/test/.eslintrc index 94112e2..5562962 100644 --- a/test/.eslintrc +++ b/test/.eslintrc @@ -1,8 +1,11 @@ { "rules": { + "array-bracket-newline": 0, + "max-lines-per-function": 0, "max-nested-callbacks": [2, 3], "max-statements": [2, 12], "max-statements-per-line": [2, { "max": 2 }], "no-invalid-this": [1], + "object-curly-newline": 0, } } diff --git a/test/index.js b/test/index.js index e5a0b98..2c1bba5 100644 --- a/test/index.js +++ b/test/index.js @@ -6,8 +6,8 @@ var runTests = require('./tests'); test('as a function', function (t) { t.test('bad array/this value', function (st) { - st.throws(function () { values(undefined); }, TypeError, 'undefined is not an object'); - st.throws(function () { values(null); }, TypeError, 'null is not an object'); + st['throws'](function () { values(undefined); }, TypeError, 'undefined is not an object'); + st['throws'](function () { values(null); }, TypeError, 'null is not an object'); st.end(); }); diff --git a/test/shimmed.js b/test/shimmed.js index 961ff35..94b0995 100644 --- a/test/shimmed.js +++ b/test/shimmed.js @@ -25,8 +25,8 @@ test('shimmed', function (t) { var supportsStrictMode = (function () { return typeof this === 'undefined'; }()); t.test('bad object value', { skip: !supportsStrictMode }, function (st) { - st.throws(function () { return Object.values(undefined); }, TypeError, 'undefined is not an object'); - st.throws(function () { return Object.values(null); }, TypeError, 'null is not an object'); + st['throws'](function () { return Object.values(undefined); }, TypeError, 'undefined is not an object'); + st['throws'](function () { return Object.values(null); }, TypeError, 'null is not an object'); st.end(); });