Skip to content

Commit

Permalink
ci: fix lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Feb 12, 2024
1 parent 5aaba86 commit 5aa5f85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: corepack-enable
- run: pnpm install
- run: pnpm lint
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"author": "Rongjian Zhang <[email protected]>",
"main": ".vite/build/main.js",
"scripts": {
"lint": "npx prettier --check src/**/*.{ts,tsx,js,jsx}",
"lint-fix": "npx prettier --write src/**/*.{ts,tsx,js,jsx}",
"lint": "prettier --check 'src/**/*.{ts,tsx}' && eslint '**/*.{ts,tsx}'",
"lint-fix": "prettier --write 'src/**/*.{ts,tsx}' && eslint --fix '**/*.{ts,tsx}'",
"make": "electron-forge make",
"package": "electron-forge package",
"publish": "electron-forge publish",
Expand Down

0 comments on commit 5aa5f85

Please sign in to comment.