Skip to content

Commit 45a7ce4

Browse files
committed
chore(web): improve tsconfig
Separate similar settings into separate sections. Enable `noUnusedLocals`, `noUnusedParameters`, `allowImportingTsExtensions`. Remove `esModuleInterop`, as it is already enabled because of `module: esnext`.
1 parent 4a1798e commit 45a7ce4

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

webdriver-ts-results/tsconfig.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,27 @@
22
"compilerOptions": {
33
"target": "ES2022",
44
"lib": ["DOM", "DOM.Iterable", "ESNext"],
5-
"noFallthroughCasesInSwitch": true,
6-
"skipLibCheck": true,
7-
"noEmit": true,
8-
"esModuleInterop": true,
9-
"strict": true,
105
"module": "ESNext",
6+
"skipLibCheck": true,
7+
8+
/* Bundler mode */
119
"moduleResolution": "Bundler",
10+
"allowImportingTsExtensions": true,
1211
"resolveJsonModule": true,
1312
"isolatedModules": true,
13+
"noEmit": true,
1414
"jsx": "react-jsx",
1515
"baseUrl": ".",
1616
"paths": {
1717
"@/*": ["./src/*"],
1818
"@components/*": ["./src/components/*"],
19-
}
19+
},
20+
21+
/* Linting */
22+
"strict": true,
23+
"noUnusedLocals": true,
24+
"noUnusedParameters": true,
25+
"noFallthroughCasesInSwitch": true,
2026
},
2127
"include": ["src"],
2228
"references": [{ "path": "./tsconfig.node.json" }]

0 commit comments

Comments
 (0)