diff --git a/.husky/pre-commit b/.husky/pre-commit index d0a77842..168049cb 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,3 @@ -npx lint-staged \ No newline at end of file +npx lint-staged +yarn --cwd=web lint-fix +yarn --cwd=web lint \ No newline at end of file diff --git a/package.json b/package.json index f4393858..45afd72d 100644 --- a/package.json +++ b/package.json @@ -51,9 +51,7 @@ "prettier --write" ], "web/**/*.{ts,tsx,js,jsx}": [ - "prettier --write", - "next lint --fix --file", - "next lint --max-warnings 0 --file" + "prettier --write" ], "common/**/*.{ts,tsx,js,jsx}": [ "prettier --write", diff --git a/web/package.json b/web/package.json index 655bfa98..0f8c9432 100644 --- a/web/package.json +++ b/web/package.json @@ -89,11 +89,5 @@ "postcss": "8.4.31", "tailwindcss": "3.3.3", "tsc-files": "1.1.3" - }, - "lint-staged": { - "*.{ts,tsx,js,jsx,json,css,scss,md}": [ - "prettier --write", - "tsc-files --noEmit --incremental false" - ] } }