From cf6dff84131cef953498988249c5306c71c1fe9f Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 3 Oct 2015 23:37:31 -0700 Subject: [PATCH] [Dev Deps] update `tape`, `eslint`, `@ljharb/eslint-config` --- .jscs.json | 5 +++++ package.json | 6 +++--- test/index.js | 3 ++- test/shimmed.js | 4 +++- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.jscs.json b/.jscs.json index 2166749..ef6e319 100644 --- a/.jscs.json +++ b/.jscs.json @@ -27,6 +27,8 @@ "WithStatement" ], + "requireObjectKeysOnNewLine": false, + "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true }, "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true }, "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true }, @@ -109,6 +111,9 @@ "requirePaddingNewLinesBeforeExport": true, + "validateNewlineAfterArrayElements": { + }, + "requirePaddingNewLinesAfterUseStrict": true, "disallowArrowFunctions": true, diff --git a/package.json b/package.json index 4a4f0ac..b81635e 100644 --- a/package.json +++ b/package.json @@ -40,13 +40,13 @@ "object-keys": "^1.0.7" }, "devDependencies": { - "tape": "^4.2.0", + "tape": "^4.2.1", "array-map": "^0.0.0", "covert": "^1.1.0", "jscs": "^2.2.1", "nsp": "^1.1.0", - "eslint": "^1.5.1", - "@ljharb/eslint-config": "^1.2.0", + "eslint": "^1.6.0", + "@ljharb/eslint-config": "^1.3.0", "@es-shims/api": "^1.0.0" }, "testling": { diff --git a/test/index.js b/test/index.js index e960818..e5a0b98 100644 --- a/test/index.js +++ b/test/index.js @@ -2,6 +2,7 @@ var values = require('../'); var test = require('tape'); +var runTests = require('./tests'); test('as a function', function (t) { t.test('bad array/this value', function (st) { @@ -10,7 +11,7 @@ test('as a function', function (t) { st.end(); }); - require('./tests')(values, t); + runTests(values, t); t.end(); }); diff --git a/test/shimmed.js b/test/shimmed.js index 7981d7a..961ff35 100644 --- a/test/shimmed.js +++ b/test/shimmed.js @@ -8,6 +8,8 @@ var defineProperties = require('define-properties'); var isEnumerable = Object.prototype.propertyIsEnumerable; var functionsHaveNames = function f() {}.name === 'f'; +var runTests = require('./tests'); + test('shimmed', function (t) { t.equal(Object.values.length, 1, 'Object.values has a length of 1'); t.test('Function name', { skip: !functionsHaveNames }, function (st) { @@ -28,7 +30,7 @@ test('shimmed', function (t) { st.end(); }); - require('./tests')(Object.values, t); + runTests(Object.values, t); t.end(); });