-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
62 lines (54 loc) · 1.87 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
{
"extends": "airbnb",
"globals": {
"window": true,
"document": true,
"fetch": true,
},
"rules": {
"indent": ["error", 3], // http://eslint.org/docs/rules/indent
"brace-style": [ // http://eslint.org/docs/rules/brace-style
"error",
"stroustrup",
{ "allowSingleLine": true }
],
"no-use-before-define": [ // http://eslint.org/docs/rules/no-use-before-define.html
"error", {
"functions": false,
"classes": false,
}
],
"no-param-reassign": [ // http://eslint.org/docs/rules/no-param-reassign
"error", {
"props": false,
}
],
"no-underscore-dangle": [ // http://eslint.org/docs/rules/no-underscore-dangle
"error",
{ "allow": ["_id"] }
],
"padded-blocks": "off", // http://eslint.org/docs/rules/padded-blocks.html
"max-len": "off", // meh
"consistent-return": "off", // in some middlewares, returns are used to break out of a method
"new-cap": "off", // keystone specific style
"array-callback-return": "off", // conflicts with mongo
"no-multi-spaces": [
"warn", {
"exceptions": {
"Property": true,
"ImportDeclaration": true,
"VariableDeclarator": true,
"AssignmentExpression": true,
}
}
],
"react/jsx-indent": ["error", 3],
"react/jsx-indent-props": ["error", 3],
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/prefer-es6-class": "off",
"react/forbid-prop-types": "off",
"react/no-unescaped-entities": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-static-element-interactions": "off",
}
}