Skip to content

Commit

Permalink
Update tsconfig + add lint to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclarke committed Sep 4, 2023
1 parent c847d9a commit 971ef68
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
run: |
yarn
- name: Lint
working-directory: web
run: |
yarn lint
- name: Run build
working-directory: web
run: |
Expand Down
3 changes: 2 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion web/tests/_globalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function checkUIServerAlive() {
resolve(false);
}
});
req.on("error", (err) => {
req.on("error", () => {
req.destroy();
resolve(false);
});
Expand Down
7 changes: 1 addition & 6 deletions web/tests/queryEditor.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import {
ByUIClass,
goToPage,
waitUntilElementNotLocated,
uiClass,
} from "./_utils";
import {ByUIClass, goToPage, waitUntilElementNotLocated} from "./_utils";

describe("queryEditor:", () => {
beforeAll(async () => {
Expand Down
2 changes: 2 additions & 0 deletions web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
Expand Down

0 comments on commit 971ef68

Please sign in to comment.