forked from metabrainz/musicbrainz-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
77 lines (72 loc) · 1.93 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
70
71
72
73
74
75
76
77
{
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"destructuring": true,
"modules": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"jsx": true
},
"globals": {
"$": true,
"document": false,
"exports": false,
"Intl": false,
"localStorage": false,
"MB": false,
"module": false,
"require": false,
"sessionStorage": false,
"window": false
},
"rules": {
"comma-dangle": 0,
"no-constant-condition": 0,
"no-unexpected-multiline": 2,
"block-scoped-var": 1,
"eqeqeq": 1,
"no-alert": 0,
"no-eq-null": 2,
"no-floating-decimal": 1,
"radix": 1,
"wrap-iife": 1,
"strict": 0,
"no-use-before-define": [2, "nofunc"],
"array-bracket-spacing": [2, "never"],
"brace-style": [2, "1tbs"],
"camelcase": [1, {"properties": "never"}],
"consistent-this": [0, "self"],
"indent": [2, 2, {"SwitchCase": 1}],
"jsx-quotes": [2, "prefer-double"],
"linebreak-style": [2, "unix"],
"new-cap": 0,
"no-lonely-if": 1,
"no-multiple-empty-lines": [1, {"max": 2}],
"no-underscore-dangle": 0,
"no-unneeded-ternary": 1,
"object-curly-spacing": [2, "never"],
"padded-blocks": [2, "never"],
"quote-props": [1, "as-needed"],
"quotes": 0,
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"spaced-comment": [1, "always"],
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/no-did-mount-set-state": [2, "allow-in-func"],
"react/no-did-update-set-state": 2,
"react/no-unknown-property": 2,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react/wrap-multilines": 2
},
"plugins": [
"react"
]
}