Skip to content

Commit dcf0832

Browse files
committed
[Dev Deps] update eslint, @ljharb/eslint-config, tape; add safe-publish-latest
1 parent c5a6b15 commit dcf0832

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

.eslintrc

+12-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,20 @@
66
"rules": {
77
"complexity": [2, 23],
88
"id-length": [2, { "min": 1, "max": 40 }],
9-
"max-params": [2, 3],
109
"max-statements": [2, 23],
1110
"max-statements-per-line": [2, { "max": 2 }],
12-
"no-extra-parens": [1],
13-
"no-invalid-this": [1],
1411
"no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "LabeledStatement", "WithStatement"],
1512
"operator-linebreak": [2, "after"]
16-
}
13+
},
14+
15+
"overrides": [
16+
{
17+
"files": "test/**",
18+
"rules": {
19+
"max-params": [2, 3],
20+
"no-invalid-this": 1,
21+
"no-magic-numbers": 0,
22+
},
23+
},
24+
],
1725
}

implementation.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
/* global window */
4+
35
var keysShim;
46
if (!Object.keys) {
57
// modified from https://github.com/es-shims/es5-shim
@@ -48,7 +50,6 @@ if (!Object.keys) {
4850
$window: true
4951
};
5052
var hasAutomationEqualityBug = (function () {
51-
/* global window */
5253
if (typeof window === 'undefined') { return false; }
5354
for (var k in window) {
5455
try {
@@ -66,7 +67,6 @@ if (!Object.keys) {
6667
return false;
6768
}());
6869
var equalsConstructorPrototypeIfNotBuggy = function (o) {
69-
/* global window */
7070
if (typeof window === 'undefined' || !hasAutomationEqualityBug) {
7171
return equalsConstructorPrototype(o);
7272
}

package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@
3333
"license": "MIT",
3434
"main": "index.js",
3535
"scripts": {
36+
"prepublish": "safe-publish-latest",
3637
"pretest": "npm run --silent lint",
3738
"test": "npm run --silent tests-only",
3839
"posttest": "npx aud",
39-
"tests-only": "node test/index.js",
40+
"tests-only": "node test",
4041
"coverage": "covert test/*.js",
4142
"coverage-quiet": "covert test/*.js --quiet",
4243
"lint": "eslint ."
@@ -53,13 +54,14 @@
5354
],
5455
"dependencies": {},
5556
"devDependencies": {
56-
"@ljharb/eslint-config": "^13.1.1",
57+
"@ljharb/eslint-config": "^14.1.0",
5758
"covert": "^1.1.1",
58-
"eslint": "^5.13.0",
59+
"eslint": "^6.4.0",
5960
"foreach": "^2.0.5",
6061
"indexof": "^0.0.1",
6162
"is": "^3.3.0",
62-
"tape": "^4.9.2"
63+
"safe-publish-latest": "^1.1.3",
64+
"tape": "^4.11.0"
6365
},
6466
"testling": {
6567
"files": "test/index.js",

test/.eslintrc

-8
This file was deleted.

0 commit comments

Comments
 (0)