-
Notifications
You must be signed in to change notification settings - Fork 75
/
.eslintrc
40 lines (40 loc) · 1.13 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
{
"extends": "airbnb",
"plugins": ["react"],
"env": {
"browser": true,
"mocha": true
},
"parser": "@babel/eslint-parser",
"rules": {
"react/jsx-boolean-value": 0,
"react/prefer-es6-class": 0,
"react/prefer-stateless-function": 0,
"react/no-multi-comp": 0,
"react/react-in-jsx-scope": 0,
"react/require-default-props": {
"classes": "defaultProps",
"functions": "ignore"
},
"no-console": 0,
"array-callback-return": "off",
"arrow-body-style": ["warn", "as-needed"],
"comma-dangle": ["warn", "never"],
"import/extensions": "off",
"import/no-unresolved": "off",
"indent": ["warn", 2, {"SwitchCase": 1}],
"react/jsx-no-bind": "off",
"max-len": [1, 120, 2, {
"ignoreUrls": true,
"ignoreComments": true
}],
"multiline-ternary": ["warn", "never"],
"no-else-return": "off",
"no-trailing-spaces": 1,
"no-underscore-dangle": ["error", { "allow": ["_toolIndex"] }],
"no-unused-vars": 1,
"no-useless-constructor": 1,
"no-useless-return": 1,
"object-curly-spacing": ["error", "always", { "objectsInObjects": false }]
}
}