Skip to content

Commit

Permalink
build: Apply strict null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasEng committed Jan 24, 2025
1 parent db69ab4 commit 2a5bfa5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/frontend-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
- name: 'Doing the typecheck'
run: yarn typecheck

- name: 'Strict null checks'
run: yarn strict-null-checks

- name: 'Running Eslint'
run: yarn lint --cache

Expand Down
7 changes: 7 additions & 0 deletions frontend/tsconfig-strict.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"strictNullChecks": true
},
"include": ["libs/studio-icons"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"test": "jest --maxWorkers=50% --config=frontend/jest.config.js",
"test:ci": "jest --ci --coverage --max-workers=2 --cacheDirectory=$(yarn config get cacheFolder) --config=frontend/jest.config.js",
"typecheck": "tsc --noEmit -p frontend",
"strict-null-checks": "tsc --noEmit -p frontend/tsconfig-strict.json",
"playwright:test:all": "yarn workspace playwright-studio test:all",
"playwright:test:ui": "yarn workspace playwright-studio test:ui",
"resourceadm:playwright:test:ui": "yarn workspace playwright-resourceadm resourceadm:test:ui",
Expand Down

0 comments on commit 2a5bfa5

Please sign in to comment.