From 2c78895abe84a5df3621cf28d1db4866b09da6f5 Mon Sep 17 00:00:00 2001 From: Issei Horie Date: Sun, 20 Mar 2022 02:00:20 +0900 Subject: [PATCH 1/2] fix: ignore lint error --- lib/fetch/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fetch/index.js b/lib/fetch/index.js index 0223e2c90c0..198b8669dcf 100644 --- a/lib/fetch/index.js +++ b/lib/fetch/index.js @@ -1586,7 +1586,7 @@ function httpNetworkFetch ( // 7. Let newConnection be "yes" if forceNewConnection is true; otherwise // "no". - const newConnection = forceNewConnection ? 'yes' : 'no' + const newConnection = forceNewConnection ? 'yes' : 'no' // eslint-disable-line no-unused-vars // 8. Switch on request’s mode: if (request.mode === 'websocket') { From 129d71e1c6c50216503cb3ba5851192d484233c5 Mon Sep 17 00:00:00 2001 From: Issei Horie Date: Sun, 20 Mar 2022 02:04:59 +0900 Subject: [PATCH 2/2] chore: run lint before commit --- .husky/pre-commit | 1 + 1 file changed, 1 insertion(+) diff --git a/.husky/pre-commit b/.husky/pre-commit index d1096ab18ae..660b8209689 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" +npm run lint npm run test