-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
110 lines (110 loc) · 2.32 KB
/
Copy pathpackage.json
File metadata and controls
110 lines (110 loc) · 2.32 KB
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
110
{
"name": "citi-starter",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"@types/jest": "^24.9.1",
"@types/node": "^12.12.53",
"@types/react": "^16.9.44",
"@types/react-dom": "^16.9.8",
"@types/react-router-dom": "^5.1.5",
"antd": "^4.5.2",
"eslint-plugin-simple-import-sort": "^5.0.3",
"husky": "^4.2.5",
"lint-staged": "^10.2.11",
"prettier": "2.0.5",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-router-dom": "^5.1.5",
"react-scripts": "3.4.1",
"styled-components": "^5.1.1",
"typescript": "^3.7.5",
"webpack": "4.42.0",
"webpack-cli": "^3.3.12"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"eslintConfig": {
"extends": "react-app",
"plugins": [
"simple-import-sort"
],
"rules": {
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "styled-components",
"message": "Please import from styled-components/macro."
}
],
"patterns": [
"!styled-components/macro"
]
}
],
"simple-import-sort/sort": [
"error",
{
"groups": [
[
"^\\u0000"
],
[
"^@?\\w"
],
[
"^(src)(/.*|$)"
],
[
"^[^.]"
],
[
"^\\."
]
]
}
],
"react/self-closing-comp": [
"error",
{
"component": true,
"html": true
}
]
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint --fix",
"git add"
],
"*.{js,css,md}": "prettier --write"
}
}