We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf93efe commit 666f83bCopy full SHA for 666f83b
2 files changed
.github/workflows/lint-and-format.yml
@@ -0,0 +1,23 @@
1
+name: Lint and Format Check
2
+
3
+on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+ push:
8
9
10
11
+jobs:
12
+ check:
13
+ name: Check code quality
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+ - uses: oven-sh/setup-bun@v1
18
19
+ - name: Install dependencies
20
+ run: bun install
21
22
+ - name: Check code quality
23
+ run: bun run check
package.json
@@ -9,7 +9,8 @@
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --write .",
- "format:check": "prettier --check ."
+ "format:check": "prettier --check .",
+ "check": "prettier --check . && eslint ."
},
"dependencies": {
"@astrojs/check": "^0.9.4",
0 commit comments