-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
49 lines (49 loc) · 1.54 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"@typescript-eslint/array-type": "error",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/type-annotation-spacing": "error",
"array-bracket-spacing": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": "error",
"comma-spacing": "error",
"eol-last": "error",
"func-call-spacing": "error",
"indent": ["error", 2],
"jsx-quotes": "error",
"key-spacing": ["error", { "mode": "minimum" }],
"keyword-spacing": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1, "maxBOF": 0 }],
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"nonblock-statement-body-position": "error",
"object-curly-spacing": ["error", "always"],
"padded-blocks": ["error", "never"],
"prefer-arrow-callback": "error",
"quotes": ["error", "single"],
"react/display-name": "off",
"react/jsx-closing-tag-location": "error",
"react/jsx-no-useless-fragment": "error",
"react/jsx-tag-spacing": "error",
"react/jsx-wrap-multilines": "error",
"semi": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": "error",
"space-infix-ops": "error"
}
}