-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
127 lines (127 loc) · 2.83 KB
/
.eslintrc.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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:@next/next/recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"globals": {
"drift": "readonly",
"process": true,
"NodeJS": true
},
"overrides": [
{
"files": [
"packages/frontend/**/test-utils.js",
"packages/frontend/**/*.test.{j,t}s?(x)"
],
"env": {
"jest": true
},
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:@next/next/recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"max-lines": "off",
"max-lines-per-function": "off"
}
},
{
"files": [
"packages/backend/**/*",
"packages/io/**/*"
],
"rules": {
"@next/next/no-html-link-for-pages": "off"
}
},
{
"files": [
"*.js",
"*.jsx"
],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.eslint.json"
},
"plugins": [
"@typescript-eslint",
"prettier"
],
"root": true,
"rules": {
"@next/next/link-passhref": "off",
"@next/next/next-script-for-ga": "error",
"@next/next/no-html-link-for-pages": "error",
"@next/next/no-img-element": "off",
"@next/next/no-sync-scripts": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-var-requires": "off",
"arrow-body-style": "off",
"import/no-import-module-exports": [
"error",
{
"exceptions": [
"**/*/store.js"
]
}
],
"import/prefer-default-export": "off",
"no-alert": "error",
"no-console": "error",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-underscore-dangle": "off",
"prettier/prettier": "error",
"react/function-component-definition": "off",
"react/jsx-curly-brace-presence": [
"error",
{
"props": "always",
"children": "never"
}
],
"react/jsx-filename-extension": [
2,
{
"extensions": [
".tsx",
".jsx"
]
}
],
"react/jsx-no-bind": "off",
"react/jsx-props-no-spreading": "off",
"react/no-danger": "error",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"react-hooks/exhaustive-deps": "warn",
"react/no-unknown-property": "off"
}
}