Skip to content

Commit

Permalink
Add type checking to sdk package (#7719)
Browse files Browse the repository at this point in the history
* add tsconfig.json

* playing

* fix tsconfig

* remove unused excludes
  • Loading branch information
jackkav authored Jul 31, 2024
1 parent a359742 commit c5aa7ab
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/insomnia-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "src/objects/index.ts",
"types": "src/objects/index.ts",
"scripts": {
"test": "vitest run"
"test": "vitest run",
"type-check": "tsc --noEmit --project tsconfig.json"
},
"repository": {
"type": "git",
Expand Down
35 changes: 35 additions & 0 deletions packages/insomnia-sdk/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"module": "ES2022",
"moduleResolution": "node",
"isolatedModules": true,
/* Strictness */
"strict": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"useUnknownInCatchVariables": false,
"verbatimModuleSyntax": true,
"jsx": "react",
/* If your code runs in the DOM: */
"lib": [
"es2022",
"dom",
"dom.iterable"
],
},
"include": [
"../insomnia/types"
],
"exclude": [
"**/__tests__",
"node_modules"
]
}

0 comments on commit c5aa7ab

Please sign in to comment.