forked from zooniverse/Panoptes-Front-End
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
34 lines (34 loc) · 1001 Bytes
/
.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
{
"extends": "airbnb",
"plugins": ["react"],
"env": {
"browser": true,
"mocha": true
},
"parser": "babel-eslint",
"rules": {
"react/jsx-boolean-value": ["error","always"],
"react/prefer-es6-class": 0,
"react/prefer-stateless-function": 0,
"react/no-multi-comp": 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 }]
}
}