-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
63 lines (63 loc) · 1.52 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
{
"env": {
"browser": true,
"es6": true,
"commonjs": true
},
"root": true,
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:flowtype/recommended",
"prettier",
"prettier/react"
],
"plugins": ["react", "import", "flowtype", "flowtype-errors", "prettier"],
"settings": {
"import/resolver": {
"babel-module": {}
}
},
"rules": {
"valid-jsdoc": [
"error",
{
"prefer": {
"arg": "param",
"return": " returns"
},
"requireReturnType": false,
"requireReturn": false
}
],
"no-use-before-define": "off",
"no-param-reassign": ["error", { "props": false }],
"no-underscore-dangle": ["warn", { "allow": ["_id", "_rev", "_path"] }],
"handle-callback-err": "error",
"no-unused-vars": ["error", { "vars": "local", "args": "none" }],
"no-unused-expressions": ["error", { "allowTernary": true }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": true }
],
"react/jsx-filename-extension": [
"warn",
{ "extensions": [".js", ".jsx"] }
],
"react/prop-types": "off",
"react/no-unused-prop-types": "warn",
"react/button-has-type": 0,
"prettier/prettier": ["error", { "tabWidth": 4, "semi": false, "printWidth": 120 }],
"flowtype-errors/show-errors": "error",
"jsx-a11y/heading-has-content": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
]
}
}