Skip to content

Commit 198cd0f

Browse files
committed
chore: update TypeScript configuration by adding strict linting options and modify typecheck script in package.json
1 parent c53cdf2 commit 198cd0f

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"test:coverage": "vitest run --coverage",
6969
"test-storybook": "vitest run --project=storybook",
7070
"test-unit": "vitest run --project=unit",
71-
"typecheck": "tsc --noEmit --project tsconfig.app.json"
71+
"typecheck": "tsc --build --noEmit"
7272
},
7373
"devDependencies": {
7474
"@chromatic-com/storybook": "5.2.1",

tsconfig.app.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717

1818
/* Linting */
1919
"strict": true,
20+
"noImplicitReturns": true,
21+
"noImplicitOverride": true,
22+
"noPropertyAccessFromIndexSignature": true,
23+
"forceConsistentCasingInFileNames": true,
24+
"allowUnusedLabels": false,
25+
"allowUnreachableCode": false,
2026
"noUnusedLocals": true,
2127
"noUnusedParameters": true,
2228
"erasableSyntaxOnly": true,

tsconfig.node.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515

1616
/* Linting */
1717
"strict": true,
18+
"noImplicitReturns": true,
19+
"noImplicitOverride": true,
20+
"noPropertyAccessFromIndexSignature": true,
21+
"forceConsistentCasingInFileNames": true,
22+
"allowUnusedLabels": false,
23+
"allowUnreachableCode": false,
1824
"noUnusedLocals": true,
1925
"noUnusedParameters": true,
2026
"erasableSyntaxOnly": true,

0 commit comments

Comments
 (0)