Add Prettier

pull/89/head
Panayiotis Lipiridis 8 years ago
parent 9d74d2b836
commit 5284a18b65

2
.gitignore vendored

@ -0,0 +1,2 @@
node_modules
package-lock.json

@ -0,0 +1,21 @@
{
"name": "tech-interview-handbook",
"license": "MIT",
"devDependencies": {
"husky": "0.14.3",
"lint-staged": "5.0.0",
"prettier": "1.8.2"
},
"lint-staged": {
"*.{js,json,md}": ["prettier --write", "git add"]
},
"scripts": {
"prettier":
"prettier --ignore-path .gitignore --write \"**/*.{js,json,md}\"",
"precommit": "lint-staged"
},
"repository": {
"type": "git",
"url": "https://github.com/lipis/prettier-setup"
}
}
Loading…
Cancel
Save