-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automated typechecking for PRs (#7)
* Enable type checking * Add GH action for typechecking
- Loading branch information
1 parent
9158b9f
commit 4834541
Showing
4 changed files
with
132 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: check-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
NODE_OPTIONS: --max_old_space_size=6144 | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Prepare | ||
uses: ./.github/actions/prepare | ||
|
||
- name: Run Typechecker | ||
run: pnpm typecheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
// https://nuxt.com/docs/api/configuration/nuxt-config | ||
export default defineNuxtConfig({ | ||
devtools: { enabled: true }, | ||
typescript: { | ||
typeCheck: true, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
"preview": "nuxt preview", | ||
"postinstall": "nuxt prepare", | ||
"lint": "eslint .", | ||
"typecheck": "nuxt typecheck", | ||
"format": "prettier --write \"**/*.{md,y?(a)ml,json,vue}\"" | ||
}, | ||
"devDependencies": { | ||
|
@@ -20,7 +21,9 @@ | |
"eslint-plugin-prettier": "4.2.1", | ||
"eslint-plugin-vue": "9.14.1", | ||
"nuxt": "3.5.2", | ||
"prettier": "2.8.8" | ||
"prettier": "2.8.8", | ||
"typescript": "5.1.3", | ||
"vue-tsc": "1.8.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.