-
Notifications
You must be signed in to change notification settings - Fork 28
/
package.json
40 lines (40 loc) · 993 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
33
34
35
36
37
38
39
40
{
"name": "prettier-setup",
"license": "MIT",
"devDependencies": {
"eslint": "5.8.0",
"eslint-config-prettier": "3.1.0",
"eslint-plugin-prettier": "3.0.0",
"husky": "1.1.2",
"lint-staged": "7.3.0",
"prettier": "1.14.3"
},
"lint-staged": {
"*.{js,jsx}": [
"eslint --fix",
"git add"
],
"*.{json,md,scss,yaml,yml}": [
"prettier --write",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"scripts": {
"fix:other": "yarn prettier --write",
"fix:js": "yarn test:js --fix",
"fix": "yarn fix:js && yarn fix:other",
"prettier": "prettier \"**/*.{json,md,scss,yaml,yml}\"",
"test:other": "yarn prettier --list-different",
"test:js": "eslint --ignore-path .gitignore --ignore-path .prettierignore --ext .js,.jsx .",
"test": "yarn test:other && yarn test:js"
},
"repository": {
"type": "git",
"url": "https://github.com/lipis/prettier-setup"
}
}