Skip to content

Commit

Permalink
Add prettier pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr committed Mar 3, 2017
1 parent 07b760a commit a3b4ab7
Show file tree
Hide file tree
Showing 2 changed files with 541 additions and 25 deletions.
15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"homepage": "https://styled-components.com/color-schemer/",
"devDependencies": {
"gh-pages": "^0.12.0",
"lint-staged": "^3.3.1",
"pre-commit": "^1.2.2",
"prettier": "^0.20.0",
"react-scripts": "0.9.3"
},
"dependencies": {
Expand All @@ -20,6 +23,14 @@
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
}
"deploy": "gh-pages -d build",
"lint:staged": "lint-staged"
},
"lint-staged": {
"*.js": [
"prettier --write",
"git add"
]
},
"pre-commit": "lint:staged"
}
Loading

0 comments on commit a3b4ab7

Please sign in to comment.