add typecheck script

This commit is contained in:
Lukas Hass 2022-02-03 18:41:13 +01:00
parent 2e115efdc5
commit faf6be889e
No known key found for this signature in database
GPG Key ID: 7C8CEF72C4039178
2 changed files with 5 additions and 1 deletions

View File

@ -56,6 +56,10 @@ jobs:
ADMIN_URL: "//localhost:80"
working-directory: "front"
- name: "Typecheck"
run: yarn run typecheck
working-directory: "front"
- name: "Svelte check"
run: yarn run svelte-check
working-directory: "front"
@ -165,4 +169,3 @@ jobs:
- name: "Prettier"
run: yarn run pretty-check
working-directory: "back"

View File

@ -76,6 +76,7 @@
"svelte-check": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore\"",
"pretty": "yarn prettier --write 'src/**/*.{ts,svelte}'",
"pretty-check": "yarn prettier --check 'src/**/*.{ts,svelte}'",
"typecheck": "tsc --noEmit",
"typesafe-i18n": "typesafe-i18n --no-watch"
},
"lint-staged": {