mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Refringe
4afc2f5c96
- 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>
14 lines
268 B
JSON
14 lines
268 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"strict": false,
|
|
"noEmit": false,
|
|
"emitDeclarationOnly": true,
|
|
"declaration": true,
|
|
"declarationDir": "./types"
|
|
},
|
|
"exclude": [
|
|
"./types/**/*"
|
|
]
|
|
}
|