Skip to content

Commit

Permalink
chore: adding hook for pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
willmendesneto committed Oct 29, 2021
1 parent 4d1a33d commit c2b7cc3
Show file tree
Hide file tree
Showing 7 changed files with 463 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 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint:staged
5 changes: 5 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"*.{js,ts,jsx,tsx}": [
"prettier --no-editorconfig --write"
]
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Ignore dev files
.github
.editorconfig
.husky
.lintstagedrc
.eslintrc.js
.prettierrc.js
*.config.js
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added

- Adding `ES2020` bundle to be published
- Adding pre-commit hook

### Fixed

Expand Down
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html

// eslint-disable-next-line no-undef
module.exports = {
testEnvironment: 'jsdom',
// The directory where Jest should store its cached dependency information
Expand Down
Loading

0 comments on commit c2b7cc3

Please sign in to comment.