|
@@ -7,7 +7,9 @@
|
|
"build": "next build",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"lint": "next lint",
|
|
- "fix": "next lint --fix"
|
|
|
|
|
|
+ "fix": "next lint --fix",
|
|
|
|
+ "eslint-fix": "eslint --fix",
|
|
|
|
+ "prepare": "cd ../ && husky install ./web/.husky"
|
|
},
|
|
},
|
|
"dependencies": {
|
|
"dependencies": {
|
|
"@emoji-mart/data": "^1.1.2",
|
|
"@emoji-mart/data": "^1.1.2",
|
|
@@ -78,8 +80,18 @@
|
|
"@types/qs": "^6.9.7",
|
|
"@types/qs": "^6.9.7",
|
|
"autoprefixer": "^10.4.14",
|
|
"autoprefixer": "^10.4.14",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
|
|
+ "husky": "^8.0.3",
|
|
|
|
+ "lint-staged": "^13.2.2",
|
|
"miragejs": "^0.1.47",
|
|
"miragejs": "^0.1.47",
|
|
"postcss": "^8.4.21",
|
|
"postcss": "^8.4.21",
|
|
"tailwindcss": "^3.2.7"
|
|
"tailwindcss": "^3.2.7"
|
|
|
|
+ },
|
|
|
|
+ "lint-staged": {
|
|
|
|
+ "**/*.js?(x)": [
|
|
|
|
+ "eslint --fix"
|
|
|
|
+ ],
|
|
|
|
+ "**/*.ts?(x)": [
|
|
|
|
+ "eslint --fix"
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+}
|