2020-03-18 22:38:42 +01:00
|
|
|
{
|
2020-07-29 21:07:02 +02:00
|
|
|
"compilerOptions": {
|
2021-01-13 00:46:59 +01:00
|
|
|
"baseUrl": "./frontend/",
|
2020-07-29 21:07:02 +02:00
|
|
|
"paths": {
|
|
|
|
"lib/*": ["./src/lib/*"],
|
|
|
|
"scenes/*": ["./src/scenes/*"],
|
2022-03-15 17:36:51 +01:00
|
|
|
"storybook/*": ["../.storybook/*"],
|
2020-08-14 17:02:57 +02:00
|
|
|
"~/*": ["./src/*"],
|
2020-10-26 12:49:50 +01:00
|
|
|
"public/*": ["./public/*"]
|
2020-07-29 21:07:02 +02:00
|
|
|
},
|
|
|
|
// https://www.sitepoint.com/react-with-typescript-best-practices/
|
|
|
|
"allowJs": true, // Allow JavaScript files to be compiled
|
|
|
|
"skipLibCheck": true, // Skip type checking of all declaration files
|
|
|
|
"esModuleInterop": true, // Disables namespace imports (import * as fs from "fs") and enables CJS/AMD/UMD style imports (import fs from "fs")
|
|
|
|
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export
|
2020-07-30 19:16:59 +02:00
|
|
|
"strict": true, // Enable all strict type checking options
|
2020-07-29 21:07:02 +02:00
|
|
|
"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file.
|
|
|
|
"module": "esnext", // Specify module code generation
|
|
|
|
"moduleResolution": "node", // Resolve modules using Node.js style
|
|
|
|
"resolveJsonModule": true, // Include modules imported with .json extension
|
|
|
|
"noEmit": true, // Do not emit output (meaning do not compile code, only perform type checking)
|
|
|
|
"jsx": "react", // Support JSX in .tsx files
|
|
|
|
"sourceMap": true, // Generate corrresponding .map file
|
|
|
|
"declaration": true, // Generate corresponding .d.ts file
|
|
|
|
"noUnusedLocals": true, // Report errors on unused locals
|
|
|
|
"noUnusedParameters": true, // Report errors on unused parameters
|
|
|
|
"experimentalDecorators": true, // Enables experimental support for ES decorators
|
2020-07-30 19:16:59 +02:00
|
|
|
"noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statement
|
2021-11-05 15:21:28 +01:00
|
|
|
"suppressImplicitAnyIndexErrors": true, // Index objects by number
|
2021-06-24 17:09:41 +02:00
|
|
|
"lib": ["dom", "es2019"]
|
2020-07-08 09:45:23 +02:00
|
|
|
},
|
2022-03-15 17:36:51 +01:00
|
|
|
"include": ["frontend/**/*", ".storybook/**/*"],
|
|
|
|
"exclude": ["node_modules/**/*", "staticfiles/**/*", "frontend/dist/**/*", "plugin-server/**/*"],
|
|
|
|
"ts-node": {
|
|
|
|
"compilerOptions": {
|
|
|
|
"module": "commonjs"
|
|
|
|
}
|
|
|
|
}
|
2020-03-18 22:38:42 +01:00
|
|
|
}
|