diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index d9d465d7..7be7984f 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -28,6 +28,11 @@ jobs: run: | yarn + - name: Lint + working-directory: web + run: | + yarn lint + - name: Run build working-directory: web run: | diff --git a/web/package.json b/web/package.json index c3ad0a1c..b6c7f9b0 100644 --- a/web/package.json +++ b/web/package.json @@ -34,7 +34,8 @@ "test": "jest --runInBand", "eject": "react-scripts eject", "dev-server": "env EDGEDB_DEBUG_HTTP_INJECT_CORS=1 edb server", - "open-browser": "node openBrowser.js" + "open-browser": "node openBrowser.js", + "lint": "tsc --noEmit" }, "eslintConfig": { "extends": [ diff --git a/web/tests/_globalSetup.ts b/web/tests/_globalSetup.ts index 59fc6f8a..5630c722 100644 --- a/web/tests/_globalSetup.ts +++ b/web/tests/_globalSetup.ts @@ -54,7 +54,7 @@ async function checkUIServerAlive() { resolve(false); } }); - req.on("error", (err) => { + req.on("error", () => { req.destroy(); resolve(false); }); diff --git a/web/tests/queryEditor.test.ts b/web/tests/queryEditor.test.ts index 0b19f4da..d6437861 100644 --- a/web/tests/queryEditor.test.ts +++ b/web/tests/queryEditor.test.ts @@ -1,9 +1,4 @@ -import { - ByUIClass, - goToPage, - waitUntilElementNotLocated, - uiClass, -} from "./_utils"; +import {ByUIClass, goToPage, waitUntilElementNotLocated} from "./_utils"; describe("queryEditor:", () => { beforeAll(async () => { diff --git a/web/tsconfig.json b/web/tsconfig.json index 0bd7b592..4e64a420 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -12,6 +12,8 @@ "allowSyntheticDefaultImports": true, "strict": true, "forceConsistentCasingInFileNames": true, + "noUnusedLocals": true, + "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, "module": "esnext", "moduleResolution": "node",