-
Notifications
You must be signed in to change notification settings - Fork 23
/
package.json
38 lines (38 loc) · 970 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
{
"name": "prettier-setup",
"license": "MIT",
"devDependencies": {
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "3.4.0",
"husky": "7.0.1",
"lint-staged": "11.1.1",
"prettier": "2.3.2"
},
"lint-staged": {
"*.{js,jsx}": [
"eslint --fix"
],
"*.{json,md,scss,yaml,yml}": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"scripts": {
"fix:other": "yarn prettier --write",
"fix:code": "yarn test:code --fix",
"fix": "yarn fix:code && yarn fix:other",
"prettier": "prettier \"**/*.{json,md,scss,yaml,yml}\"",
"test:other": "yarn prettier --list-different",
"test:code": "eslint --ignore-path .gitignore --ignore-path .prettierignore --ext .js,.jsx .",
"test": "yarn test:other && yarn test:code"
},
"repository": {
"type": "git",
"url": "https://github.com/lipis/prettier-setup"
}
}