-
Notifications
You must be signed in to change notification settings - Fork 138
/
package.json
32 lines (32 loc) · 940 Bytes
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"scripts": {
"precommit-msg": "echo 'Pre-commit checks...' && exit 0",
"prettier": "prettier --write '**/*.md'",
"prettier-watch": "onchange '**/*.md' -- prettier --write {{changed}}",
"commit": "git add . && git commit -m 'feat: update tutorial ✨' && git push",
"clean-commit": "git checkout --orphan latest_branch && git add -A && git commit -am 'clean past commit history 😊' && git branch -D master && git branch -m master && git push -f origin master"
},
"husky": {
"hooks": {
"pre-commit": "yarn run precommit-msg && lint-staged"
}
},
"lint-staged": {
"**/**.{js,json,pcss,md,vue}": [
"prettier --write",
"git add"
]
},
"prettier": {
"singleQuote": true,
"semi": false,
"printWidth": 120,
"proseWrap": false
},
"devDependencies": {
"husky": "^3.0.0",
"lint-staged": "9.2.0",
"onchange": "^6.0.0",
"prettier": "1.18.2"
}
}