-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
60 lines (59 loc) · 1.58 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
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"node": true
},
"rules": {
"no-underscore-dangle": "off",
"no-param-reassign": ["error", { "props": false }],
"no-tabs": "off",
"indent": ["error", "tab", { "SwitchCase": 1 }],
"arrow-parens": ["off"],
"no-plusplus": "off",
"consistent-return": "off",
"comma-dangle": "off",
"generator-star-spacing": "off",
"no-use-before-define": "off",
"no-multi-assign": "off",
"react/forbid-prop-types": "off",
"react/jsx-indent": ["warn", "tab"],
"react/jsx-indent-props": ["warn", "tab"],
"react/prop-types": ["error", { "skipUndeclared": true }],
"react/sort-comp": ["error", {
"order": ["type-annotations", "static-methods", "lifecycle", "everything-else", "render"]
}],
"react/jsx-no-bind": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": "error",
"react/no-unused-prop-types": "off",
"import/no-extraneous-dependencies": "off",
"import/extensions": "off",
"import/no-named-as-default-member": "warn",
"import/no-unresolved": ["error", {
"ignore": [
".*ALIAS.*"
]
}]
},
"globals": {
"__BROWSER__": false,
"__ELECTRON__": false,
"__PRODUCTION__": false,
"__DEVELOPMENT__": false,
"expect": false
},
"plugins": [
"react",
"jsx-a11y",
"import"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack/partials/webpack.base.config.js"
}
}
}
}