-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc
56 lines (56 loc) · 1.57 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
{
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"extends": [
"eslint:recommended",
"plugin:react/all",
"react-app"
],
"rules": {
"react/jsx-indent": ["warn", 2],
"react/jsx-indent-props": ["warn", 2],
"react/jsx-no-literals": "off",
"react/jsx-max-depth": ["warn", { "max": 8 }],
"react/no-danger": "warn",
"quotes": 1,
"indent": ["warn", 2, { "SwitchCase": 1 }],
"@typescript-eslint/no-unused-vars": [
"warn",
{ "args": "none" }
],
"space-infix-ops": "error",
"arrow-parens": "error",
"eqeqeq": "error",
"object-curly-spacing": ["error", "always"],
"object-curly-newline": ["error", {
"ObjectExpression": { "multiline": true, "minProperties": 2 },
"ObjectPattern": { "multiline": true, "minProperties": 2 },
"ImportDeclaration": { "multiline": true, "minProperties": 2 },
"ExportDeclaration": { "multiline": true, "minProperties": 1 }
}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"object-property-newline": "error",
"default-case": "warn",
"no-template-curly-in-string": "off",
"no-unreachable": "warn",
"semi": "error",
"no-lone-blocks": "off",
"curly": "error",
"eol-last": "error",
"no-trailing-spaces": "error",
"no-multiple-empty-lines": ["warn", { "max": 1 }]
}
}