-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
70 lines (66 loc) · 1.71 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
{
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"globals": {
"tinymce": true
},
"rules": {
"camelcase": 0,
"strict": 0,
"eqeqeq": 0,
"no-underscore-dangle": 0,
"consistent-return": 0,
"no-shadow": 0,
"no-use-before-define": 0,
"brace-style": [2, "1tbs"],
"guard-for-in": 0,
"no-floating-decimal": 2,
"no-nested-ternary": 2,
"radix": 2,
"wrap-iife": [2, "inside"],
"consistent-this": [2, "self"],
"no-bitwise": 2,
"max-depth": [1, 8],
"max-statements": [2, 150],
"max-len": [1, 140, 4],
"eol-last": 0,
"quotes": 0,
"no-trailing-spaces": 2,
"comma-spacing": [2, {"before": false, "after": true}],
"comma-dangle": ["error", "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": [2, {"int32Hint": false}],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "ignore"
}],
"object-curly-spacing": ["error", "always"],
"no-mixed-spaces-and-tabs": "error",
"keyword-spacing": 2,
"space-unary-ops": [1, { "words": true, "nonwords": false }],
"space-before-blocks": [2, "always"],
"no-multiple-empty-lines": [1, {"max": 2}],
"operator-linebreak": [2, "after"],
"semi": [2, "always"],
"indent": ["error", 2, {"SwitchCase": 1}],
"curly": [2, "all"],
"dot-notation": [2, {"allowKeywords": false}],
"no-else-return": 0,
"no-eval": 2,
"no-implied-eval": 2,
"no-loop-func": 2,
"no-multi-str": 2,
"no-multi-spaces": 2,
"no-sequences": 2,
"no-new": 2,
"no-caller": 2
},
"extends": "eslint:recommended"
}