-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
80 lines (80 loc) · 1.93 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
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"settings": {
"react": {
"version": "detect"
}
},
"globals": {
"console": true,
"document": true,
"expect": true,
"fetch": true,
"navigator": true,
"process": true,
"test": true,
"URL": true,
"window": true
},
"rules": {
"@typescript-eslint/explicit-module-boundary-types": 2,
"@typescript-eslint/member-delimiter-style": [2, {
"multiline": {
"delimiter": "none",
"requireLast": false
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}],
"@typescript-eslint/no-explicit-any": 2,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/semi": [2, "never"],
"@typescript-eslint/type-annotation-spacing": 2,
"arrow-parens": [2, "as-needed"],
"arrow-spacing": 2,
"comma-dangle": [2, {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"comma-spacing": 2,
"indent": [2, 2],
"jsx-quotes": [2, "prefer-double"],
"max-len": [2, { "code": 120 }],
"no-multi-spaces": 2,
"object-curly-spacing": [2, "always"],
"prefer-arrow-callback": 2,
"quotes": [2, "single"],
"react/prop-types": [0],
"semi": [2, "never"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "never"]
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": 0
}
}
]
}