-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
49 lines (45 loc) · 1.3 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
{
"extends": ["react-app", "prettier"],
"rules": {
"array-bracket-spacing": ["error", "never"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs"],
"comma-spacing": ["error", { "before": false, "after": true }],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"semi": ["error", "always"],
"eqeqeq": "error",
"prefer-const": "error",
"max-len": "off",
"no-extra-boolean-cast": "off",
"import/order": [
"error",
{
"groups": [
"builtin",
["external", "internal"],
"parent",
["sibling", "index"]
],
"newlines-between": "always-and-inside-groups"
}
],
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "styled-components",
"message": "Please import from styled-components/macro."
}
],
"patterns": ["!styled-components/macro"]
}
],
"react/jsx-fragments": "off"
},
"plugins": ["import"]
}