Skip to content

Commit

Permalink
add husky and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
LedyBacer committed Mar 7, 2024
1 parent 68d6cf0 commit df7ce58
Show file tree
Hide file tree
Showing 4 changed files with 672 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
16 changes: 16 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"*.ts": [
"prettier --write",
"eslint"
],
"*.js": [
"prettier --write",
"eslint"
],
"*.html": [
"eslint",
"prettier --write"
],
"*.scss": "prettier --write",
"*.css": "prettier --write"
}
Loading

0 comments on commit df7ce58

Please sign in to comment.