Skip to content

Commit

Permalink
Add jsconfig to enable ts-check project-wide
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgalow committed Sep 2, 2023
1 parent 9d6520e commit bdf4626
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
9 changes: 9 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"baseUrl": ".",
"checkJs": true,
},
"exclude": [
"node_modules",
],
}
1 change: 0 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-check
import http from "node:http";
import { spawn } from "node:child_process";
import { log } from "./utils.js";
Expand Down
1 change: 0 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-check
export async function sleep(ms = 100) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
Expand Down

0 comments on commit bdf4626

Please sign in to comment.