-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
39 lines (39 loc) · 2.08 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"compilerOptions": {
"baseUrl": "src/",
"target": "es6", // Specify ECMAScript target version
"lib": ["dom", "dom.iterable", "esnext"],
"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
"strict": true, // Enable all strict type checking options
"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file.
"module": "esnext", // Specify module code generation
"moduleResolution": "node", // Resolve modules using Node.js style
"isolatedModules": true, // Unconditionally emit imports for unresolved files
"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
"noUnusedLocals": true, // Report errors on unused locals
"noUnusedParameters": true, // Report errors on unused parameters
"incremental": true, // Enable incremental compilation by reading/writing information from prior compilations to a file on disk
"noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statement
"plugins": [{
"name": "typescript-plugin-css-modules",
"options": {
// "namedExports": true,
"classnameTransform": "camelCase",
"customMatcher": "\\.module\\.css$",
"dotenvOptions": {},
"postcssOptions": {},
"rendererOptions": {}
}
}]
},
"include": [
"src/**/*", // *** The files TypeScript should type check ***
],
"exclude": ["node_modules", "build", "src/libs", "webpack.config.js", "i18next-parser.config.js", ".prettierrc"] // *** The files to not type check ***
}