-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
160 lines (160 loc) · 3.24 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"airbnb",
"prettier",
"plugin:import/typescript",
"prettier/@typescript-eslint",
"react-app"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"import",
"react",
"react-hooks",
"@typescript-eslint",
"prettier",
"jsx-a11y"
],
"rules": {
"semi": ["error", "never"],
"comma-dangle": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"consistent-return": "off",
"no-underscore-dangle": "off",
"func-names": "off",
"class-methods-use-this": "off",
"no-useless-constructor": "off",
"no-unused-vars": "off",
"no-extra-parens": "off",
"no-case-declarations": "off",
"object-shorthand": "error",
"no-template-curly-in-string": "error",
"prefer-template": "error",
"linebreak-style": ["error", "unix"],
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-tabs": [
"error",
{
"allowIndentationTabs": true
}
],
"indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"lines-between-class-members": "off",
"no-param-reassign": "off",
"no-console": "off",
"max-len": [
"error",
{
"code": 180
}
],
"no-nested-ternary": "off",
"no-use-before-define": "off",
"prefer-arrow-callback": [
"error",
{ "allowUnboundThis": true, "allowNamedFunctions": true }
],
"radix": "off",
"prefer-const": [
"error",
{
"destructuring": "all",
"ignoreReadBeforeAssign": false
}
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": false
}
],
"react/jsx-filename-extension": [
1,
{
"extensions": [".tsx"]
}
],
"react/jsx-one-expression-per-line": "off",
"react/jsx-curly-spacing": [
2,
{
"when": "never",
"attributes": {
"allowMultiline": true
},
"children": true
}
],
"react/jsx-indent": [2, "tab"],
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"react/jsx-indent-props": [2, "tab"],
"react/jsx-key": ["warn"],
"react/no-array-index-key": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"import/no-unresolved": "error",
"import/extensions": ["error", "never"],
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"prettier/prettier": "error"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {}
}
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": ["**/*.spec.ts", "**/*.spec.tsx"],
"env": {
"jest": true
}
}
]
}