-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
164 lines (164 loc) · 4.12 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"name": "appanino-frontend",
"description": "Frontend for Appanino",
"author": "Dario Crosa <[email protected]>",
"version": "0.1.0",
"license": "MIT",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/7ixi0/appanino-frontend-react.git"
},
"bugs": {
"url": "https://github.com/7ixi0/appanino-frontend-react/issues"
},
"devDependencies": {
"@graphql-codegen/cli": "^1.4.0",
"@graphql-codegen/typescript": "1.4.0",
"@graphql-codegen/typescript-operations": "1.4.0",
"@graphql-codegen/typescript-react-apollo": "1.4.0",
"@types/jest": "24.0.15",
"@types/jwt-decode": "^2.2.1",
"@types/lodash.groupby": "^4.6.6",
"@types/node": "12.6.8",
"@types/react": "16.8.23",
"@types/react-dom": "16.8.4",
"@types/react-router-dom": "^5.1.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-i18next": "^3.2.0",
"eslint-plugin-prettier": "^3.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"source-map-explorer": "^2.0.1"
},
"dependencies": {
"@material-ui/core": "^4.2.1",
"@material-ui/icons": "^4.2.1",
"@types/graphql": "^14.2.3",
"apollo-cache-inmemory": "^1.6.2",
"apollo-client": "^2.6.3",
"apollo-link": "^1.2.12",
"apollo-link-context": "^1.0.18",
"apollo-link-error": "^1.1.11",
"apollo-link-http": "^1.5.15",
"graphql": "^14.4.2",
"graphql-tag": "^2.10.1",
"i18next": "^17.0.16",
"i18next-browser-languagedetector": "^3.0.3",
"i18next-xhr-backend": "^3.1.2",
"lodash.groupby": "^4.6.0",
"react": "^16.8.6",
"react-apollo": "^2.5.8",
"react-apollo-hooks": "^0.5.0",
"react-dom": "^16.8.6",
"react-hook-form": "^3.18.13",
"react-i18next": "^10.12.5",
"react-router-dom": "^5.0.1",
"react-scripts": "3.0.1",
"typeface-roboto": "^0.0.75",
"typescript": "3.5.3",
"unstated-next": "^1.1.0"
},
"scripts": {
"start": "run-p start:*",
"start:app": "react-scripts start",
"start:codegen": "yarn run codegen --watch",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint src/**/**.{js,jsx,ts,tsx}",
"codegen": "graphql-codegen --config codegen.yml",
"analyze": "source-map-explorer build/static/js/*.js"
},
"eslintConfig": {
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"react-app",
"plugin:prettier/recommended"
],
"plugins": [
"i18next"
],
"rules": {
"no-console": [
"warn",
{
"allow": [
"error",
"warn",
"info"
]
}
],
"i18next/no-literal-string": [
"warn",
{
"ignore": [
"^/"
],
"ignoreCallee": [
"t",
"createStyles",
"createMuiTheme"
],
"ignoreAttribute": [
"name",
"inputName",
"autoComplete",
"aria-labelledby"
]
}
],
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "@material-ui/core",
"message": "Import single components from the submodules instead."
},
{
"name": "@material-ui/icons",
"message": "Import single icons from submodules instead."
},
{
"name": "@material-ui/styles",
"message": "Import from @material-ui/core/styles instead."
}
]
}
]
},
"overrides": [
{
"files": [
"*.test.{js,jsx,ts,tsx}"
],
"rules": {
"i18next/no-literal-string": "off"
}
}
]
},
"prettier": {
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 2
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}