Skip to content

Commit 2a5bfa5

Browse files
committed
build: Apply strict null checks
1 parent db69ab4 commit 2a5bfa5

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.github/workflows/frontend-unit-tests.yml

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jobs:
6363
- name: 'Doing the typecheck'
6464
run: yarn typecheck
6565

66+
- name: 'Strict null checks'
67+
run: yarn strict-null-checks
68+
6669
- name: 'Running Eslint'
6770
run: yarn lint --cache
6871

frontend/tsconfig-strict.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"strictNullChecks": true
5+
},
6+
"include": ["libs/studio-icons"]
7+
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
"test": "jest --maxWorkers=50% --config=frontend/jest.config.js",
9595
"test:ci": "jest --ci --coverage --max-workers=2 --cacheDirectory=$(yarn config get cacheFolder) --config=frontend/jest.config.js",
9696
"typecheck": "tsc --noEmit -p frontend",
97+
"strict-null-checks": "tsc --noEmit -p frontend/tsconfig-strict.json",
9798
"playwright:test:all": "yarn workspace playwright-studio test:all",
9899
"playwright:test:ui": "yarn workspace playwright-studio test:ui",
99100
"resourceadm:playwright:test:ui": "yarn workspace playwright-resourceadm resourceadm:test:ui",

0 commit comments

Comments
 (0)