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
-1
View File
@@ -15,7 +15,6 @@
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"simple-import-sort/exports": "warn",
"simple-import-sort/imports": [
"warn",
-4
View File
@@ -1,4 +0,0 @@
{
"tabWidth": 2,
"useTabs": false
}
+1275 -372
View File
File diff suppressed because it is too large Load Diff
+11 -2
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"
}
}