This repository has been archived by the owner on Sep 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
69 lines (54 loc) · 1.61 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
},
"rules": {
"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
"import/no-unresolved": "off", // meh …
"no-mixed-operators": "off", // meh …
"max-len": "off", // conflicts with url templates
"no-multi-spaces": [
"warn", {
"exceptions": {
"Property": true,
"ImportDeclaration": true,
"VariableDeclarator": true,
"AssignmentExpression": true,
}
}
],
"arrow-parens": "off", // meh …
"comma-dangle": ["error", "always-multiline"],
// React
"react/prefer-es6-class": "off",
"react/no-string-refs": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/forbid-prop-types": "off",
"jsx-a11y/label-has-for": "off",
// Import
"import/no-extraneous-dependencies": "off",
"import/extensions": "off",
}
}