Skip to content

Commit

Permalink
chore(workspace): lint and format on commit (#4217)
Browse files Browse the repository at this point in the history
Personally have been really annoyed with the lack of pre-commit in this
repository, I have to commit twice every time as I'm not used to
manually calling `npm run lint && npm run format`
  • Loading branch information
JoviDeCroock authored Oct 7, 2024
1 parent c075a89 commit 0ce8cc8
Show file tree
Hide file tree
Showing 4 changed files with 583 additions and 5 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lint-staged
8 changes: 8 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"*.{js,ts}": [
"eslint --max-warnings 0 --rulesdir resources/eslint-internal-rules/ --fix",
"prettier --write"
],
"*.json": "prettier --write",
"*.md": "prettier --write"
}
Loading

0 comments on commit 0ce8cc8

Please sign in to comment.