Skip to content

Commit

Permalink
husky, lint-staged, prettier 셋팅
Browse files Browse the repository at this point in the history
  • Loading branch information
hmu332233 committed Mar 15, 2022
1 parent a0c23bf commit 118bc8e
Show file tree
Hide file tree
Showing 5 changed files with 359 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"**/*.{ts,tsx,json,md,css}": "prettier --write"
}
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "all",
"singleQuote": true,
"useTabs": false,
"tabWidth": 2,
"semi": true
}
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
"version": "0.1.0",
"private": true,
"scripts": {
"prepare": "husky install",
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"lint-staged": "lint-staged",
"prettier": "prettier --write ./pages ./components ./hooks ./server ./utils"
},
"dependencies": {
"astronomy-bundle": "^7.5.3",
Expand All @@ -21,7 +24,10 @@
"daisyui": "^2.6.4",
"eslint": "8.10.0",
"eslint-config-next": "12.1.0",
"husky": "^7.0.4",
"lint-staged": "^12.3.5",
"postcss": "^8.4.8",
"prettier": "^2.5.1",
"tailwindcss": "^3.0.23",
"typescript": "4.6.2"
}
Expand Down
Loading

1 comment on commit 118bc8e

@vercel
Copy link

@vercel vercel bot commented on 118bc8e Mar 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.