Skip to content

Commit beafd20

Browse files
tamirohVinzent03
andauthored
Add TypeScript compiler check (#452)
* Replace this.statusBarEl.ariaLabel with (this.statusBarEl as any).ariaLabel * Replace this.statusBarEl.ariaLabel with (this.statusBarEl as any).ariaLabel * Fix * Fix * Install @types/hogan.js * Add undefined type * Add compile job * Add ! with reasons * Add @ts-ignore * Install @codemirror/state and @codemirror/view * Update * Update ObsidianGitSettings type * Update * Add @ts-ignore * Add @ts-ignore * Add @ts-ignore * Add TODO and @ts-ignore * Update * bump typescript version * refactor: set missing default settings * style: remove comment * Add pull_request * Fix typo * Add default string value * Revert "Add default string value" This reverts commit 1d6a92e. * Fix * style: remove comment --------- Co-authored-by: Vinzent <vinzent03@proton.me>
1 parent a0b9f21 commit beafd20

File tree

14 files changed

+152
-80
lines changed

14 files changed

+152
-80
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: test
2-
on: push
2+
on:
3+
push:
4+
pull_request:
35
jobs:
46
lint:
57
runs-on: ubuntu-latest
@@ -21,5 +23,16 @@ jobs:
2123
version: 6.0.2
2224
- name: Install modules
2325
run: pnpm install
24-
- name: Run ESLint
26+
- name: Run Prettier
2527
run: pnpm run format
28+
compile:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: pnpm/action-setup@v2
33+
with:
34+
version: 6.0.2
35+
- name: Install modules
36+
run: pnpm install
37+
- name: Run tsc
38+
run: tsc --noEmit

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
"t": ""
1818
},
1919
"devDependencies": {
20+
"@codemirror/state": "^6.2.0",
21+
"@codemirror/view": "^6.9.1",
2022
"@types/debug": "^4.1.7",
2123
"@types/diff": "^5.0.2",
24+
"@types/hogan.js": "^3.0.1",
2225
"@types/node": "^14.18.36",
2326
"@typescript-eslint/eslint-plugin": "5.29.0",
2427
"@typescript-eslint/parser": "5.29.0",
@@ -35,7 +38,7 @@
3538
"svelte-check": "^1.6.0",
3639
"svelte-preprocess": "^4.10.7",
3740
"tslib": "^2.5.0",
38-
"typescript": "4.3.5"
41+
"typescript": "^4.9.5"
3942
},
4043
"dependencies": {
4144
"buffer": "^6.0.3",

pnpm-lock.yaml

Lines changed: 67 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)