-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
39 lines (39 loc) · 910 Bytes
/
.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
{
"extends": ["react-app", "airbnb", "prettier"],
"rules": {
"react/jsx-filename-extension": "off",
"react/sort-comp": [
"error",
{
"order": [
"static-methods",
"lifecycle",
"/^on.+$/",
"getters",
"setters",
"/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/",
"type-annotations",
"everything-else",
"/^render.+$/",
"render"
]
}
],
"no-console": ["error", { "allow": ["warn", "error"] }],
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to", "hrefLeft", "hrefRight"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
]
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src/"]
}
}
}
}