generated from basementstudio/next-typescript
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
134 lines (134 loc) · 3.44 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
{
"name": "next-contentful-graphql",
"version": "0.1.0",
"description": "A boilerplate for using NextJS with Contentful's GraphQL API.",
"repository": "https://github.com/basementstudio/next-contentful-graphql",
"author": "Basement",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start",
"type-check": "tsc --pretty --noEmit",
"lint": "eslint . --ext ts --ext tsx --ext js",
"gql-codegen": "graphql-codegen --config gql-codegen.yml -r dotenv/config"
},
"dependencies": {
"graphql": "^15.4.0",
"graphql-request": "^3.4.0",
"next": "^10.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@graphql-codegen/cli": "^1.21.3",
"@graphql-codegen/introspection": "^1.18.0",
"@graphql-codegen/typescript": "^1.21.1",
"@graphql-codegen/typescript-graphql-request": "^2.0.1",
"@graphql-codegen/typescript-operations": "^1.17.8",
"@types/node": "^14.14.37",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.7",
"@typescript-eslint/eslint-plugin": "^4.0.0",
"@typescript-eslint/parser": "^3.9.0",
"dotenv": "^8.2.0",
"eslint": "^7.6.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.23.1",
"eslint-plugin-react-hooks": "^4.0.8",
"husky": "^4.2.5",
"lint-staged": "^10.2.11",
"prettier": "^2.0.5",
"typescript": "^3.8.3"
},
"prettier": {
"semi": false,
"singleQuote": true,
"arrowParens": "always",
"tabWidth": 2,
"printWidth": 80,
"trailingComma": "none"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"react",
"react-hooks",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"env": {
"es6": true,
"browser": true,
"node": true
},
"rules": {
"react/react-in-jsx-scope": 0,
"react/display-name": 0,
"react/prop-types": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/indent": 0,
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/ban-ts-comment": 0,
"react-hooks/exhaustive-deps": "warn",
"curly": [
"error",
"multi-line"
],
"react/jsx-no-target-blank": [
2,
{
"allowReferrer": true
}
],
"@typescript-eslint/no-unused-vars": [
2,
{
"argsIgnorePattern": "^_"
}
],
"no-console": [
1,
{
"allow": [
"warn",
"error"
]
}
],
"prettier/prettier": [
"warn"
],
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "yarn run type-check"
}
},
"lint-staged": {
"*.@(ts|tsx)": [
"yarn lint --fix"
]
}
}