Skip to content

Commit

Permalink
use stricter tsconfig's
Browse files Browse the repository at this point in the history
  • Loading branch information
fire332 committed Mar 29, 2024
1 parent 8b1ee9e commit 11a2e6e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 13 deletions.
13 changes: 0 additions & 13 deletions jsconfig.json

This file was deleted.

25 changes: 25 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
// Language
"target": "ESNext",
"module": "ESNext",
"lib": ["ESNext"],
"esModuleInterop": true,

// Module handling
"composite": true,
"moduleResolution": "bundler",
"resolveJsonModule": true,
"verbatimModuleSyntax": true,
"isolatedModules": true,

// Linting
"noErrorTruncation": true,
"strict": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,

"outDir": "./node_modules/.cache/tsc_build"
}
}
10 changes: 10 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"allowJs": true,

"lib": ["ESNext", "DOM"]
},
"include": ["./src"],
"references": [{ "path": "./tsconfig.tooling.json" }]
}
7 changes: 7 additions & 0 deletions tsconfig.tooling.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"checkJs": true
},
"include": ["./*", "./**/.eslintrc.js"]
}

0 comments on commit 11a2e6e

Please sign in to comment.