[ACS-7357] pre-commit linting for code and styles (#9472)

* chore: enable lint-staged and prettier for pre-commit

* testing hook

* update linting config

* cleanup
This commit is contained in:
Denys Vuika 2024-03-25 13:23:19 -04:00 committed by GitHub
parent 1952f4852f
commit dbe33e9a58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run affected:lint
npx lint-staged

4
.lintstagedrc.json Normal file
View File

@ -0,0 +1,4 @@
{
"*.{ts,js}": ["prettier --write", "eslint"],
"*.{css,scss}": ["prettier --write", "stylelint"]
}