-
Notifications
You must be signed in to change notification settings - Fork 167
/
.eslintrc
71 lines (71 loc) · 1.81 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", "only-multiline"],
"consistent-return": "off",
"global-require": "off",
"indent": ["error", 2, {"SwitchCase": 1}],
"max-len": ["warn", 120],
"no-alert": "off",
"no-confusing-arrow": "off",
"no-console": "off",
"no-param-reassign": "off",
"no-underscore-dangle": "off",
"prefer-promise-reject-errors": "warn",
"prefer-template": "warn",
"react/forbid-prop-types": "warn",
"react/jsx-closing-tag-location": "off",
"react/jsx-filename-extension": "off",
"react/jsx-no-target-blank": "warn",
"react/jsx-one-expression-per-line": "off",
"react/no-multi-comp": ["error", {"ignoreStateless": true}],
"react/no-unescaped-entities": "off",
"react/prefer-stateless-function": "warn",
"jsx-a11y/label-has-for": ["error", {"allowChildren": true}],
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
],
"import/default": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default": "error",
"import/no-unresolved": "off"
},
"plugins": [
"react",
"import"
],
"settings": {
"import/resolve": {
"moduleDirectory": [
"node_modules",
"src",
"api"
]
}
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"globals": {
"__DEVELOPMENT__": true,
"__CLIENT__": true,
"__SERVER__": true,
"__DISABLE_SSR__": true,
"__DEVTOOLS__": true,
"webpackIsomorphicTools": true
}
}