Skip to content

Commit

Permalink
[Dev Deps] update eslint, @ljharb/eslint-config, `safe-publish-la…
Browse files Browse the repository at this point in the history
…test`
  • Loading branch information
ljharb committed Oct 29, 2019
1 parent bd3f551 commit 4ed2f81
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,12 @@
"no-throw-literal": 0,
},
},
{
"files": "test/**",
"rules": {
"max-lines": 0,
"max-lines-per-function": 0,
},
},
],
}
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;
var stack = (new Error()).stack; // eslint-disable-line no-extra-parens
Error.prepareStackTrace = origPrepareStackTrace;
return stack[2].getFileName();
};
6 changes: 3 additions & 3 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": "^13.1.1",
"eslint": "^5.16.0",
"@ljharb/eslint-config": "^14.1.0",
"eslint": "^6.6.0",
"object-keys": "^1.1.1",
"safe-publish-latest": "^1.1.2",
"safe-publish-latest": "^1.1.3",
"tap": "0.4.13",
"tape": "^4.11.0"
},
Expand Down
6 changes: 0 additions & 6 deletions test/.eslintrc

This file was deleted.

0 comments on commit 4ed2f81

Please sign in to comment.