Add husky and lint-staged

This commit is contained in:
seunghyunOh
2022-12-10 12:13:48 +09:00
parent 059f15b172
commit 9a3caac75f
12 changed files with 22490 additions and 19575 deletions

View File

@@ -1,11 +1,19 @@
{
"private": true,
"scripts": {
"prepare": "cd .. && npm install",
"dev": "next dev",
"build": "next build",
"start": "next start",
"start:docker": "next build && next start",
"lint": "next lint"
"lint": "next lint",
"lint-staged": "lint-staged"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix",
"prettier --write"
]
},
"dependencies": {
"@emotion/css": "^11.10.0",
@@ -64,6 +72,7 @@
"postcss": "^8.4.14",
"prettier": "2.7.1",
"tailwindcss": "^3.1.4",
"typescript": "^4.9.3"
"typescript": "^4.9.3",
"lint-staged": "^13.1.0"
}
}