-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
47 lines (47 loc) · 1.3 KB
/
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
41
42
43
44
45
46
47
{
"name": "package_name",
"version": "package_version",
"description": "package_description",
"main": "src/index.ts",
"author": "Luiz Felipe Gonçalves <https://github.com/lffg>",
"license": "UNLICENSED",
"scripts": {
"format:raw": "prettier --write",
"format": "yarn format:raw '**/*.{js,jsx,ts,tsx,json,vue,css,scss,less,graphql,gql,md,mdx,yml,yaml}'",
"lint": "yarn lint:raw .",
"lint:fix": "yarn lint:raw --fix .",
"lint:raw": "eslint --ext .js,.jsx,.ts,.tsx --max-warnings=0",
"test": "jest",
"check:ts": "tsc --noEmit",
"check:all": "yarn lint && yarn check:ts && yarn test"
},
"dependencies": {},
"devDependencies": {
"@types/jest": "^24.0.20",
"@types/node": "^12.11.7",
"del-cli": "^3.0.0",
"eslint": "6.x",
"eslint-config-lffg": "^9.0.0",
"husky": "^3.0.9",
"jest": "^24.9.0",
"lint-staged": "^9.4.2",
"prettier": "^1.18.2",
"ts-jest": "^24.1.0",
"typescript": "^3.6.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && yarn check:all"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx,json,vue,css,scss,less,graphql,gql,md,mdx,yml,yaml}": [
"yarn format:raw",
"git add"
],
"*.{js,jsx,ts,tsx}": [
"yarn lint:raw --ignore-pattern '!.prettierrc.js'",
"git add"
]
}
}