Skip to content

Commit 15c391f

Browse files
authored
refactor(tsc): config
1 parent 76123b0 commit 15c391f

File tree

1 file changed

+44
-35
lines changed

1 file changed

+44
-35
lines changed

tsconfig.json

Lines changed: 44 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,51 @@
11
{
2-
"$schema": "https://json.schemastore.org/tsconfig",
3-
"compilerOptions": {
4-
"allowSyntheticDefaultImports": false,
5-
"esModuleInterop": false,
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"formatCodeOptions": {
4+
"tabSize": 2,
5+
"indentSize": 2
6+
},
7+
"compilerOptions": {
8+
"allowSyntheticDefaultImports": false,
9+
"allowUnreachableCode": false,
10+
"esModuleInterop": false,
11+
"tsBuildInfoFile": "./",
612
"forceConsistentCasingInFileNames": true,
13+
"strictPropertyInitialization": true,
714
"noFallthroughCasesInSwitch": true,
8-
"removeComments": true,
9-
"incremental": true,
10-
"tsBuildInfoFile": "./",
11-
"preserveValueImports": true,
12-
"emitDecoratorMetadata": true,
15+
"useUnknownInCatchVariables": true,
16+
"noUncheckedIndexedAccess": true,
1317
"experimentalDecorators": true,
14-
"allowUnreachableCode": false,
15-
"strictPropertyInitialization": true,
18+
"emitDecoratorMetadata": true,
19+
"preserveValueImports": true,
20+
"strictBindCallApply": true,
21+
"strictFunctionTypes": true,
22+
"noUnusedParameters": true,
23+
"noImplicitReturns": true,
1624
"strictNullChecks": true,
17-
"strictFunctionTypes": true,
18-
"isolatedModules": true,
19-
"declaration": true,
20-
"sourceMap": false,
21-
"module": "node16",
25+
"isolatedModules": true,
26+
"removeComments": true,
27+
"incremental": true,
28+
"declaration": true,
29+
"sourceMap": false,
2230
"moduleResolution": "node16",
23-
"moduleDetection": "force",
24-
"target": "ESNext",
25-
"rootDir": "./src",
26-
"outDir": "./dist",
27-
"types": [],
28-
"plugins": [
29-
{
30-
"name": "typescript-eslint-language-service"
31-
}
32-
]
33-
},
34-
"include": [
35-
"src/**/*.ts"
36-
],
37-
"exclude": [
38-
"**/node_modules",
39-
"**/.*/",
40-
"src/**/*.test.ts"
41-
]
31+
"moduleDetection": "force",
32+
"module": "node16",
33+
"target": "ESNext",
34+
"rootDir": "./src",
35+
"outDir": "./dist",
36+
"types": [],
37+
"plugins": [
38+
{
39+
"name": "typescript-eslint-language-service"
40+
}
41+
]
42+
},
43+
"include": [
44+
"src/**/*.ts"
45+
],
46+
"exclude": [
47+
"**/node_modules",
48+
"**/.*/",
49+
"src/**/*.test.ts"
50+
]
4251
}

0 commit comments

Comments
 (0)