Skip to content

Commit dbdce76

Browse files
authored
Merge pull request #9 from kasperekt/add-prettier
Add prettier support
2 parents 2b8a385 + ca8f211 commit dbdce76

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
**/node_modules
2-
.vscode
32
.DS_Store

package.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
"description": "looks for all modules that are used in your project",
55
"main": "index.js",
66
"scripts": {
7-
"test": "jest"
7+
"test": "jest",
8+
"precommit": "lint-staged"
9+
},
10+
"lint-staged": {
11+
"*.js": [
12+
"prettier --write",
13+
"git add"
14+
]
815
},
916
"keywords": [],
1017
"author": "Tomasz Kasperek <[email protected]> (http://tomaszkasperek.me/)",
@@ -15,6 +22,9 @@
1522
"klaw-sync": "^1.1.2"
1623
},
1724
"devDependencies": {
18-
"jest": "^19.0.2"
25+
"husky": "^0.13.3",
26+
"jest": "^19.0.2",
27+
"lint-staged": "^3.4.0",
28+
"prettier": "^1.2.2"
1929
}
20-
}
30+
}

0 commit comments

Comments
 (0)