-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
80 lines (80 loc) · 1.65 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
{
"plugins": [
"import",
"jsx-a11y",
"react",
"react-hooks",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"airbnb",
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:import/errors",
"plugin:import/warnings"
],
"rules": {
"react/jsx-uses-react": 0,
"react/prop-types": 0,
"arrow-parens": 2,
"import/prefer-default-export": 0,
"import/no-default-export": 2,
"react/jsx-filename-extension": 0,
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"brace-style": [2, "1tbs"],
"curly": [2, "all"],
"dot-location": [2, "property"],
"eol-last": 2,
"jsx-quotes": [2, "prefer-double"],
"keyword-spacing": [
2,
{
"after": true,
"before": true
}
],
"max-len": 2,
"space-before-blocks": 2,
"no-lonely-if": 2,
"no-trailing-spaces": 2,
"no-multi-spaces": 2,
"no-undef": 0,
"no-multiple-empty-lines": [
2,
{
"max": 1
}
],
"indent": [2, 2],
"semi": 2,
"react/react-in-jsx-scope": 0,
"@typescript-eslint/no-var-requires": 0,
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}