Skip to content

Commit

Permalink
Add lint-staged and precommit hook (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Apr 22, 2018
1 parent a2f681a commit 5fa3236
Show file tree
Hide file tree
Showing 2 changed files with 1,022 additions and 4 deletions.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@
"test:jest": "jest --no-watchman --runInBand",
"test:ci": "jest --no-watchman --maxWorkers 2 --coverage && codecov",
"watch": "watch 'clear && npm run test -s' source",
"watch:jest": "jest --no-watchman --watch"
"watch:jest": "jest --no-watchman --watch",
"precommit": "lint-staged"
},
"lint-staged": {
"*.{js,md}": [
"prettier --write",
"git add"
]
},
"babel": {
"presets": [
Expand Down Expand Up @@ -137,6 +144,7 @@
"immutable": "^3.7.5",
"jest": "^22.0.4",
"jest-environment-puppeteer": "^1.1.1",
"lint-staged": "^7.0.4",
"postcss": "^6.0.14",
"postcss-cli": "^4.1.1",
"postcss-loader": "^2.0.9",
Expand Down

0 comments on commit 5fa3236

Please sign in to comment.