mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-24 19:06:37 -05:00
Refactor pre-commit hooks and update lint-staged configuration
This commit is contained in:
@@ -1 +1,3 @@
|
||||
npx lint-staged
|
||||
npx lint-staged
|
||||
yarn --cwd=web lint-fix
|
||||
yarn --cwd=web lint
|
||||
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user