Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
feat: run linter pre commit + gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Jul 14, 2024
1 parent 0f85f42 commit 44d4a8b
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Linter
on:
push:
branches: main
pull_request:
branches: main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- name: install dependencies
run: npm ci
- name: run linter
run: npm run lint
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint
16 changes: 16 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"prepare": "husky"
},
"dependencies": {
"@headlessui/react": "^1.7.17",
Expand All @@ -28,6 +29,7 @@
"daisyui": "^4.4.24",
"eslint": "^8",
"eslint-config-next": "14.0.4",
"husky": "^9.0.11",
"postcss": "^8",
"tailwindcss": "^3.3.0"
}
Expand Down

0 comments on commit 44d4a8b

Please sign in to comment.