Skip to content

Commit

Permalink
lint action + removed husky/lint-staged (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnguyennz authored Jan 15, 2024
1 parent 9c69e76 commit 649fe9e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 142 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: lint
on: push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install
- run: pnpm lint
5 changes: 0 additions & 5 deletions .husky/pre-commit

This file was deleted.

6 changes: 0 additions & 6 deletions lint-staged.config.cjs

This file was deleted.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"astro": "astro",
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.astro .",
"test:unit": "vitest",
"test:e2e": "cypress run",
"prepare": "husky install"
"test:e2e": "cypress run"
},
"dependencies": {
"@astrojs/check": "0.4.1",
Expand Down Expand Up @@ -48,8 +47,6 @@
"eslint-config-prettier": "9.1.0",
"eslint-plugin-astro": "0.31.0",
"eslint-plugin-jsx-a11y": "6.8.0",
"husky": "8.0.3",
"lint-staged": "15.2.0",
"prettier": "3.2.1",
"prettier-plugin-astro": "0.12.3",
"prettier-plugin-tailwindcss": "0.5.11",
Expand Down
131 changes: 4 additions & 127 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 649fe9e

Please sign in to comment.