-
Notifications
You must be signed in to change notification settings - Fork 51
/
package.json
118 lines (118 loc) · 3.79 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
{
"name": "product",
"version": "1.0.0",
"private": true,
"repository": "https://github.com/nice-boys/product-boilerplate",
"author": "Max Stoiber <[email protected]>",
"workspaces": {
"packages": [
"web"
]
},
"scripts": {
"prettier": "prettier",
"prettify": "prettier --write",
"lint": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx web",
"dev": "concurrently -n web,generate:web,generate:schema,generate:db \"yarn workspace web dev\" \"yarn generate:web --watch\" \"nodemon -w web/graphql -x 'yarn generate:schema'\" \"nodemon -w web/database/datamodel.prisma -x 'yarn run generate:db'\"",
"web": "yarn workspace web",
"db": "yarn workspace web run db",
"db:deploy": "yarn workspace web run db:deploy",
"generate": "yarn run generate:db && yarn run generate:schema && yarn run generate:web",
"generate:web": "graphql-codegen --config graphql-codegen.yml",
"generate:schema": "GENERATE=true ts-node --skip-project web/graphql/schema/index.ts",
"generate:db": "yarn workspace web generate:db",
"postinstall": "yarn run generate"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./web/tsconfig.json"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint",
"react-app"
],
"plugins": [
"react-hooks",
"clean-styled-components"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-explicit-any": 2,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"clean-styled-components/single-component-per-file": 2,
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
]
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && yarn run generate:schema && git add web/graphql/schema.generated.graphql",
"post-checkout": "yarn run generate && yarn run db:deploy"
}
},
"lint-staged": {
"*.{js,ts,tsx}": [
"eslint --fix",
"prettier --write",
"git add"
],
"*.{css,json,md,mdx}": [
"yarn run prettify --write",
"git add"
]
},
"devDependencies": {
"@graphql-codegen/add": "1.2.0",
"@graphql-codegen/cli": "^1.2.0",
"@graphql-codegen/core": "1.6.1",
"@graphql-codegen/fragment-matcher": "1.6.1",
"@graphql-codegen/introspection": "1.6.1",
"@graphql-codegen/near-operation-file-preset": "1.2.0",
"@graphql-codegen/typescript": "1.2.0",
"@graphql-codegen/typescript-graphql-files-modules": "1.6.1",
"@graphql-codegen/typescript-operations": "1.2.0",
"@graphql-codegen/typescript-react-apollo": "1.2.0",
"@typescript-eslint/eslint-plugin": "^1.6.0",
"@typescript-eslint/parser": "^1.6.0",
"babel-eslint": "^10.0.2",
"concurrently": "^4.1.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.1.0",
"eslint-config-react-app": "^3.0.8",
"eslint-loader": "2.1.1",
"eslint-plugin-clean-styled-components": "^0.0.2",
"eslint-plugin-flowtype": "2.50.3",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-react": "7.14.3",
"eslint-plugin-react-hooks": "^1.6.0",
"husky": ">=1",
"lint-staged": ">=9",
"nodemon": "^1.19.1",
"now": "^15.3.0",
"prettier": "^1.18.2",
"react-dev-utils": "^9.0.1",
"ts-node": "^8.2.0"
},
"resolutions": {
"styled-jsx": "3.0.0",
"@types/styled-components": "4.1.8",
"graphql": "14.3.1"
},
"license": "MIT"
}