-
Notifications
You must be signed in to change notification settings - Fork 3
/
tsconfig.json
39 lines (36 loc) · 2.05 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": {
// --- Code generation
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "./types",
"importHelpers": true,
"lib": ["DOM", "ESNext"],
// --- Type checking
"allowJs": true, // Allow JS files to be compiled
"checkJs": false, // Opt in to type checking for JS files
"strict": true,
"noUncheckedIndexedAccess": false, // Every property access with an index could be undefined - todo
"skipLibCheck": true, // Skip type checking .d.ts declaration files (recommended by TS)
"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
// "alwaysStrict": true,
// --- Module resolution and file parsing
"moduleResolution": "node", // Use Node.js algorithm to resolve modules
"esModuleInterop": true, // Interop commonJS and ESM, fixes some issues importing commonJS (recommended by TS)
"isolatedModules": true, // Disallow features that require cross-file information for compilation (Babel safety check)
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
"jsx": "react-jsx" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
},
"include": ["@types/**/*", "src/**/*"],
"exclude": [
"src/plugin-postcss/index.ts",
"src/plugin-babel/index.ts",
"src/**/*.spec.js"
]
}