-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
package.json
88 lines (88 loc) · 2.07 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"name": "react-shopping-cart",
"version": "0.1.0",
"private": true,
"engines": {
"node": "14.17.3"
},
"dependencies": {
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.4.1",
"@types/node": "^16.11.25",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.14",
"axios": "^0.26.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-scripts": "^5.0.0",
"styled-components": "^5.3.3",
"typescript": "^4.6.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --silent",
"test:watch": "npm test -- --watch",
"test:coverage": "npm test -- --coverage --watchAll",
"deploy": "firebase deploy",
"eject": "react-scripts eject",
"lint": "eslint ./src",
"format": "prettier --write \"**/*.+(ts|tsx|js|json|css)\""
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!<rootDir>/src/index.tsx",
"!<rootDir>/node_modules/"
],
"coverageThreshold": {
"global": {
"branches": 64,
"functions": 90,
"lines": 90,
"statements": 90
}
}
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,css,md}": [
"prettier --write"
]
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@testing-library/react-hooks": "^7.0.2",
"@types/styled-components": "^5.1.23",
"firebase-tools": "^10.2.1",
"husky": "^4.2.5",
"lint-staged": "^10.2.10",
"prettier": "^2.5.1"
}
}