Skip to content

Commit

Permalink
feat: added lint staged
Browse files Browse the repository at this point in the history
  • Loading branch information
R11manish committed Jan 19, 2024
1 parent a37b204 commit 3314f34
Show file tree
Hide file tree
Showing 5 changed files with 4,614 additions and 1,615 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ __mocks__/*
lib/*
custom-fetch.js
commitlint.config.js
release.config.js
release.config.js
.husky/*
3 changes: 2 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm test
pnpm lint-staged


4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"build": "tsc"
},
"lint-staged": {
"*": [
"pnpm lint",
"*.ts": [
"pnpm format",
"pnpm lint",
"git add"
]
},
Expand Down
Loading

0 comments on commit 3314f34

Please sign in to comment.