feat(ci): 👷 add lint-staged back

This commit is contained in:
Guz013
2023-11-29 16:31:01 -03:00
parent f8dfce5aac
commit 94fca1a902
3 changed files with 9 additions and 1 deletions

View File

@@ -2,5 +2,5 @@
. "$(dirname -- "$0")/_/husky.sh"
pnpm dlx commitlint --edit ${1}
pnpm run lint:fix
pnpm dlx lint-staged

4
.lintstagedrc Normal file
View File

@@ -0,0 +1,4 @@
{
"gitDir": "./.git",
"*": "eslint --fix"
}

View File

@@ -0,0 +1,4 @@
{
"gitDir": "../../.git",
"*": "eslint --fix"
}