Skip to content

Commit

Permalink
[ACS-7357] pre-commit linting for code and styles (#9472)
Browse files Browse the repository at this point in the history
* chore: enable lint-staged and prettier for pre-commit

* testing hook

* update linting config

* cleanup
  • Loading branch information
DenysVuika committed Mar 25, 2024
1 parent 1952f48 commit dbe33e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run affected:lint
npx lint-staged
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{ts,js}": ["prettier --write", "eslint"],
"*.{css,scss}": ["prettier --write", "stylelint"]
}

0 comments on commit dbe33e9

Please sign in to comment.