Refactor pre-commit hooks and update lint-staged configuration

This commit is contained in:
MartinBraquet
2026-02-21 19:48:17 +01:00
parent b6d7955130
commit 243e602fda
3 changed files with 4 additions and 10 deletions

View File

@@ -1 +1,3 @@
npx lint-staged
npx lint-staged
yarn --cwd=web lint-fix
yarn --cwd=web lint

View File

@@ -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",

View File

@@ -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"
]
}
}