Skip to content

Commit b059289

Browse files
committed
ci: check formatting with prettier
1 parent 57a46be commit b059289

File tree

3 files changed

+82
-61
lines changed

3 files changed

+82
-61
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,14 @@ jobs:
1212
run: pnpm install
1313
- name: Run ESLint
1414
run: pnpm run lint
15+
format:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: pnpm/action-setup@v2
20+
with:
21+
version: 6.0.2
22+
- name: Install modules
23+
run: pnpm install
24+
- name: Run ESLint
25+
run: pnpm run format

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"dev": "node esbuild.config.mjs dev",
88
"build": "node esbuild.config.mjs production",
99
"release": "standard-version",
10-
"lint": "eslint --ext .ts,.svelte src"
10+
"lint": "eslint --ext .ts,.svelte src",
11+
"format": "prettier --check src"
1112
},
1213
"keywords": [],
1314
"author": "",
@@ -26,28 +27,29 @@
2627
"eslint": "^8.35.0",
2728
"eslint-plugin-svelte3": "^4.0.0",
2829
"obsidian": "^0.16.3",
29-
"sass": "^1.57.1",
30+
"prettier": "2.8.4",
31+
"sass": "^1.58.3",
3032
"scss": "^0.2.4",
3133
"standard-version": "^9.5.0",
32-
"svelte": "^3.55.0",
34+
"svelte": "^3.55.1",
3335
"svelte-check": "^1.6.0",
3436
"svelte-preprocess": "^4.10.7",
35-
"tslib": "^2.4.1",
37+
"tslib": "^2.5.0",
3638
"typescript": "4.3.5"
3739
},
3840
"dependencies": {
3941
"buffer": "^6.0.3",
4042
"debug": "^4.3.4",
4143
"diff": "^5.1.0",
42-
"diff2html": "^3.4.22",
44+
"diff2html": "^3.4.31",
4345
"isomorphic-git": "^1.21.0",
4446
"obsidian-community-lib": "^2.0.2",
45-
"simple-git": "^3.15.1",
47+
"simple-git": "^3.16.1",
4648
"supports-color": "^7.2.0"
4749
},
4850
"moduleFileExtensions": [
4951
"js",
5052
"ts",
5153
"svelte"
5254
]
53-
}
55+
}

0 commit comments

Comments
 (0)