Skip to content

Commit

Permalink
Lint & format on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Rindrics committed Jun 11, 2024
1 parent b975410 commit c706a78
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ jobs:
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
run: make install

- name: Lint & format
run: make lint

- name: Run tests
run: pnpm test
run: make test
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pnpm-lock.yaml
CHANGELOG.md
eslint.config.js
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
install:
pnpm install

test:
pnpm test

lint:
pnpm lint

format:
pnpm format
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"build": "tsup",
"format": "prettier --write .",
"format-check": "prettier --check .",
"lint": "eslint .",
"lint": "eslint . && pnpm format-check",
"dev": "tsup --watch",
"prebuild": "run-s clean",
"predev": "run-s clean",
Expand Down

0 comments on commit c706a78

Please sign in to comment.