Skip to content

Commit

Permalink
build: added husky and lint-staged
Browse files Browse the repository at this point in the history
Refs: #303
  • Loading branch information
AntoninoBonanno committed Jan 14, 2024
1 parent 5b1e611 commit 58dd807
Show file tree
Hide file tree
Showing 4 changed files with 567 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
11 changes: 11 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"*.ts": [
"prettier --write",
"eslint"
],
"*.html": [
"eslint",
"prettier --write"
],
"*.scss": "prettier --write"
}
Loading

0 comments on commit 58dd807

Please sign in to comment.