Skip to content

Commit

Permalink
Adding pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
justrhysism committed Dec 31, 2019
1 parent f940f2d commit fda95b1
Show file tree
Hide file tree
Showing 2 changed files with 706 additions and 6 deletions.
18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@
"eslint-plugin-import": "2.19.1",
"eslint-plugin-jest": "23.1.1",
"eslint-plugin-prettier": "3.1.2",
"husky": ">=1",
"jest": "24.9.0",
"jest-runner-eslint": "0.7.5",
"jest-snapshot-serializer-raw": "^1.1.0",
"lint-staged": ">=8",
"prettier": "^1.19.0",
"rollup": "^1.1.2",
"rollup-plugin-alias": "^2.0.0",
Expand All @@ -55,5 +57,21 @@
"projects": [
"<rootDir>/jest.*.config.js"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"prettier --write",
"eslint --fix",
"git add"
],
"*.{json,md}": [
"prettier --write",
"git add"
]
}
}
Loading

0 comments on commit fda95b1

Please sign in to comment.