Skip to content

Commit 3e18d90

Browse files
committed
[Dev Deps] update eslint, @ljharb/eslint-config, array.prototype.map, tape
1 parent 09fa26b commit 3e18d90

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

lib/core.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ function specifierIncluded(specifier) {
1515
return cur < ver;
1616
} else if (op === '>=') {
1717
return cur >= ver;
18-
} else {
19-
return false;
2018
}
19+
return false;
2120
}
2221
return op === '>=';
2322
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
"test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test"
2727
},
2828
"devDependencies": {
29-
"@ljharb/eslint-config": "^17.6.0",
30-
"array.prototype.map": "^1.0.3",
29+
"@ljharb/eslint-config": "^18.0.0",
30+
"array.prototype.map": "^1.0.4",
3131
"aud": "^1.1.5",
3232
"eclint": "^2.8.1",
33-
"eslint": "^7.27.0",
33+
"eslint": "^7.32.0",
3434
"object-keys": "^1.1.1",
3535
"safe-publish-latest": "^1.1.4",
3636
"tap": "0.4.13",
37-
"tape": "^5.2.2"
37+
"tape": "^5.3.1"
3838
},
3939
"license": "MIT",
4040
"author": {

test/mock_sync.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,8 @@ test('symlinked', function (t) {
122122
var dir = path.dirname(resolved);
123123
var base = path.basename(resolved);
124124
return path.join(dir, 'symlinked', base);
125-
} else {
126-
return path.join(resolved, 'symlinked');
127125
}
126+
return path.join(resolved, 'symlinked');
128127
}
129128
};
130129
}
@@ -183,9 +182,8 @@ test('readPackageSync', function (t) {
183182
var readPackageSync = function (readFileSync, file) {
184183
if (file.indexOf(path.join('bar', 'package.json')) >= 0) {
185184
return { main: './something-else.js' };
186-
} else {
187-
return JSON.parse(files[path.resolve(file)]);
188185
}
186+
return JSON.parse(files[path.resolve(file)]);
189187
};
190188

191189
t.test('with readPackage', function (st) {

0 commit comments

Comments
 (0)