-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
32 lines (32 loc) · 1.79 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
{
"compilerOptions": {
"rootDirs": ["src", "__jest__"],
"outDir": "dist",
"lib": ["dom", "esnext"],
"typeRoots": ["node_modules/@types"],
"target": "es5",
"skipLibCheck": true, // Skip type checking of declaration files (.d.ts)
"esModuleInterop": true, // Creates __importStar and __importDefault helpers for compatibility with the Babel
"allowSyntheticDefaultImports": true, // allows import w/o default prop
"strict": true, // Еnabling all of the strict mode family options
"forceConsistentCasingInFileNames": true, // Force consistent casing in file names
"noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statements
"module": "esnext", // Sets the module system for the program. Also it's required when use outFile option.
"moduleResolution": "node", // Specify the module resolution strategy
"resolveJsonModule": true, // Allows importing modules with a ‘.json’ extension, which is a common practice in node projects
"isolatedModules": true, // all implementation files must be modules (which means it has some form of import/export)
"noImplicitAny": true, // Raise error if the type "any" is specified somewhere
"noImplicitThis": true, // Raise error on "this" expressions with an implied "any" type
"noUnusedLocals": true, // Raise errors on unused local variables
"noEmit": true, // Do not emit compiler output files like JavaScript source code, source-maps or declarations
"jsx": "react-jsx",
"paths": {
"@assets/*": ["./src/assets/*"],
"@modules/*": ["./src/modules/*"],
"@shared/*": ["./src/shared/*"],
"@views/*": ["./src/views/*"]
}
},
"include": ["src", "__jest__/jest-setup.ts", "src/types/svg.d.ts"],
"references": [{ "path": "./tsconfig.node.json" }],
}