-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
109 lines (109 loc) · 3.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"name": "marvel-api-spa",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/react-hooks": "^5.1.0",
"@testing-library/user-event": "^12.1.10",
"axios": ">=0.21.1",
"polished": "^3.6.5",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.0",
"styled-components": "^5.1.1",
"styled-normalize": "^8.0.7",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
"dev": "yarn start",
"build": "react-scripts build",
"test": "react-scripts test --env=jest-environment-jsdom-sixteen --verbose",
"test:unit": "yarn test --watchAll=false --passWithNoTests",
"test:coverage": "react-scripts test --env=jest-environment-jsdom-sixteen --coverage --watchAll=false --passWithNoTests",
"test:e2e": "cypress run --headless --browser chrome",
"format": "prettier --write \"**/*.+(js|jsx|json|css|md)\"",
"eject": "react-scripts eject",
"lint": "eslint ./src",
"lint:fix": "yarn lint --fix"
},
"eslintConfig": {
"extends": "react-app"
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "yarn lint",
"pre-push": "yarn test:unit"
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"jest": {
"transform": {
"^.+\\.(js|jsx)?$": "babel-jest"
},
"collectCoverageFrom": [
"<rootDir>/src/**/*.{js,jsx}",
"!<rootDir>/node_modules/",
"!<rootDir>/src/serviceWorker.js",
"!<rootDir>/src/setupTests.js",
"!<rootDir>/src/reportWebVitals.js",
"!<rootDir>/src/index.js",
"!<rootDir>/src/components/index.js",
"!<rootDir>/src/pages/**/*.js",
"!<rootDir>/src/config/index.js"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
}
},
"devDependencies": {
"@babel/plugin-transform-react-jsx": "^7.13.12",
"@babel/preset-env": "^7.13.12",
"@babel/preset-react": "^7.13.13",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.3.0",
"cypress": "^4.12.1",
"enzyme": "^3.11.0",
"eslint": "^7.6.0",
"eslint-config-prettier": "^8.1.0",
"eslint-config-react-app": "^5.2.1",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^23.20.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.20.5",
"eslint-plugin-react-hooks": "^4.0.8",
"husky": "^4.2.5",
"jest-environment-jsdom-sixteen": "^1.0.3",
"jest-enzyme": "^7.1.2",
"jest-styled-components": "^7.0.2",
"lint-staged": "^10.5.4",
"prettier": "^2.0.5"
}
}