-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
46 lines (46 loc) · 1.1 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
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:react/recommended",
"plugin:flowtype/recommended",
"prettier",
"prettier/react",
"prettier/flowtype"
],
"plugins": ["react", "prettier", "flowtype", "flowtype-errors"],
"rules": {
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
],
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 2
}
],
"flowtype-errors/show-errors": 2,
"no-warning-comments": [
1,
{ "terms": ["todo", "fixme", "xxx"], "location": "start" }
],
"react/sort-comp": [0],
"react/no-unescaped-entities": [0],
"react/jsx-boolean-value": [0],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/default-props-match-prop-types": "off",
"jsx-a11y/no-static-element-interactions": [0]
},
"env": {
"jest": true,
"es6": true,
"browser": true
}
}