Skip to content

Commit cef172e

Browse files
committed
chore: final cleanup
1 parent d33ddf1 commit cef172e

2 files changed

Lines changed: 23 additions & 9 deletions

File tree

src/charts/donut.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function generateDonutChart(
4848
selectedTheme,
4949
legendStartX,
5050
useStroke
51-
)
51+
);
5252

5353
return { segments, legend };
5454
}

tsconfig.json

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"compilerOptions": {
3+
// Module/Target
34
"target": "ESNext",
45
"module": "ESNext",
56
"moduleResolution": "bundler",
7+
"moduleDetection": "force",
68
"outDir": "./dist",
79

10+
// Core Strictness
811
"strict": true,
912
"noImplicitAny": true,
1013
"strictNullChecks": true,
@@ -14,24 +17,35 @@
1417
"noImplicitThis": true,
1518
"useUnknownInCatchVariables": true,
1619

17-
"allowUnusedLabels": false,
18-
"allowUnreachableCode": false,
19-
"exactOptionalPropertyTypes": true,
20-
"noFallthroughCasesInSwitch": true,
21-
"noImplicitOverride": true,
20+
// Unused Code Elimination
21+
"noUnusedLocals": true,
22+
"noUnusedParameters": true,
2223
"noImplicitReturns": true,
24+
"importsNotUsedAsValues": "remove",
25+
"preserveValueImports": false,
26+
27+
// Safety/Validation
28+
"noErrorTruncation": true,
29+
"exactOptionalPropertyTypes": true,
2330
"noPropertyAccessFromIndexSignature": true,
2431
"noUncheckedIndexedAccess": true,
2532
"noUncheckedSideEffectImports": true,
33+
34+
// Code Quality
35+
"allowUnusedLabels": false,
36+
"allowUnreachableCode": false,
37+
"noFallthroughCasesInSwitch": true,
38+
"noImplicitOverride": true,
2639
"useDefineForClassFields": true,
27-
"noUnusedLocals": true,
28-
"noUnusedParameters": true,
2940

41+
// Build/Output
3042
"isolatedModules": true,
3143
"verbatimModuleSyntax": true,
3244
"forceConsistentCasingInFileNames": true,
3345
"esModuleInterop": true,
34-
"skipLibCheck": true
46+
"skipLibCheck": true,
47+
"checkJs": false,
48+
"noEmit": true
3549
},
3650
"include": [
3751
"./src/**/*.ts",

0 commit comments

Comments
 (0)