diff --git a/.eslintrc b/.eslintrc index d7485182..939613f5 100644 --- a/.eslintrc +++ b/.eslintrc @@ -35,5 +35,12 @@ "no-throw-literal": 0, }, }, + { + "files": "test/**", + "rules": { + "max-lines": 0, + "max-lines-per-function": 0, + }, + }, ], } diff --git a/lib/caller.js b/lib/caller.js index b14a2804..681ee201 100644 --- a/lib/caller.js +++ b/lib/caller.js @@ -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(); }; diff --git a/package.json b/package.json index 86d925a5..13182709 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/test/.eslintrc b/test/.eslintrc deleted file mode 100644 index a613f0fa..00000000 --- a/test/.eslintrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rules": { - "max-lines": 0, - "max-lines-per-function": 0, - } -}