mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
- Enables TS strict mode - Adds script to check types - Adds workflow to run check-type script - Updates the code-checking workflows to share the same set-up job This updates the `tsconfig.json` option to enable strict mode. *However*, we use TSX for development and SWC for release, which do not type-check, so this option only gives additional linting/visual-feedback in VSCode. Additionally, I've added a NPM script `npm run lint:types` and a GitHub workflow that runs it. **This depends on #1005.** --------- Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
28 lines
616 B
JSON
28 lines
616 B
JSON
{
|
|
"compilerOptions": {
|
|
"strict": true,
|
|
"moduleDetection": "force",
|
|
"module": "Preserve",
|
|
"resolveJsonModule": true,
|
|
"allowJs": true,
|
|
"esModuleInterop": true,
|
|
"isolatedModules": true,
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"verbatimModuleSyntax": false,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@spt/*": [
|
|
"./src/*"
|
|
],
|
|
"@tests/*": [
|
|
"./tests/*"
|
|
]
|
|
},
|
|
},
|
|
"include": [
|
|
"src/*",
|
|
"src/**/*"
|
|
]
|
|
}
|