forked from noxious/server
Improved typescript config
This commit is contained in:
parent
e19f30b15a
commit
75595515b5
@ -1,15 +1,32 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
/* Visit https://aka.ms/tsconfig to read more about this file */
|
// Enable latest features
|
||||||
"outDir": "./dist",
|
"lib": ["ESNext"],
|
||||||
"target": "ES2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
"target": "ESNext",
|
||||||
"module": "commonjs", /* Specify what module code is generated. */
|
"module": "ESNext",
|
||||||
"typeRoots": ["./node_modules/@types"], /* Specify multiple folders that act like './node_modules/@types'. */
|
"moduleDetection": "force",
|
||||||
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
"allowJs": true,
|
||||||
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
"declaration": true,
|
||||||
"strict": true, /* Enable all strict type-checking options. */
|
|
||||||
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
// Best practices
|
||||||
|
"strict": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"#utilities/*": ["./src/utilities/*"],
|
||||||
|
},
|
||||||
|
|
||||||
|
// Specify multiple folders that act like './node_modules/@types'
|
||||||
|
"typeRoots": ["./node_modules/@types"],
|
||||||
|
|
||||||
|
// Other options
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
}
|
},
|
||||||
|
"include": ["**/*.ts", "**/*.tsx"],
|
||||||
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user