-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsconfig.json
32 lines (31 loc) · 908 Bytes
/
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": {
// Default
"target": "es6",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
// Added
"jsx": "react",
"module": "ESNext",
"declaration": true,
"declarationDir": "types",
"sourceMap": true,
"outDir": "dist",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"allowJs": true, // need for js files that included in "files" array
"noUncheckedIndexedAccess": true // https://stackoverflow.com/a/74467502/2179748
},
"files": [
".eslintrc.js",
"jest.config.js",
"lint-staged.config.js",
"prettier.config.js",
"rollup.config.js",
"vite.config.js"
], // need to use eslint for these files because eslint uses tsconfig.json
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],
"exclude": ["node_modules"]
}