Skip to content

Commit

Permalink
[Dev Deps] update @ljharb/eslint-config, safe-publish-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 19, 2019
1 parent 788e56f commit ffacbe3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/caller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = function () {
// see https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi
var origPrepareStackTrace = Error.prepareStackTrace;
Error.prepareStackTrace = function (_, stack) { return stack; };
var stack = (new Error()).stack; // eslint-disable-line no-extra-parens
var stack = (new Error()).stack;
Error.prepareStackTrace = origPrepareStackTrace;
return stack[2].getFileName();
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test"
},
"devDependencies": {
"@ljharb/eslint-config": "^14.1.0",
"@ljharb/eslint-config": "^15.0.2",
"eslint": "^6.6.0",
"object-keys": "^1.1.1",
"safe-publish-latest": "^1.1.3",
"safe-publish-latest": "^1.1.4",
"tap": "0.4.13",
"tape": "^4.11.0"
},
Expand Down
2 changes: 1 addition & 1 deletion test/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test('filter', function (t) {
resolve('./baz', {
basedir: dir,
packageFilter: function (pkg, pkgfile, dir) {
pkg.main = 'doom';
pkg.main = 'doom'; // eslint-disable-line no-param-reassign
packageFilterArgs = [pkg, pkgfile, dir];
return pkg;
}
Expand Down
2 changes: 1 addition & 1 deletion test/filter_sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test('filter', function (t) {
var res = resolve.sync('./baz', {
basedir: dir,
packageFilter: function (pkg, pkgfile, dir) {
pkg.main = 'doom';
pkg.main = 'doom'; // eslint-disable-line no-param-reassign
packageFilterArgs = [pkg, pkgfile, dir];
return pkg;
}
Expand Down
4 changes: 2 additions & 2 deletions test/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ test('browser field in package.json', function (t) {
basedir: dir,
packageFilter: function packageFilter(pkg) {
if (pkg.browser) {
pkg.main = pkg.browser;
delete pkg.browser;
pkg.main = pkg.browser; // eslint-disable-line no-param-reassign
delete pkg.browser; // eslint-disable-line no-param-reassign
}
return pkg;
}
Expand Down
4 changes: 2 additions & 2 deletions test/resolver_sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ test('browser field in package.json', function (t) {
basedir: dir,
packageFilter: function packageFilter(pkg) {
if (pkg.browser) {
pkg.main = pkg.browser;
delete pkg.browser;
pkg.main = pkg.browser; // eslint-disable-line no-param-reassign
delete pkg.browser; // eslint-disable-line no-param-reassign
}
return pkg;
}
Expand Down

0 comments on commit ffacbe3

Please sign in to comment.