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
|
{
"env": {
"browser": true
},
"extends": "eslint:all",
"globals": {
"define": false
},
"rules": {
"array-bracket-newline": ["error", "consistent"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": "off",
"capitalized-comments": "off",
"comma-dangle": ["error", "only-multiline"],
"curly": ["error", "multi-line"],
"dot-location": ["error", "property"],
"func-names": "off",
// "func-style": ["error", "declaration"],
"id-length": ["error", { "min": 1 }],
// "max-len": ["error", { "code": 120 }],
"max-params": ["warn", 9],
"max-statements": ["warn", 28],
"max-statements-per-line": ["error", { "max": 2 }],
"multiline-comment-style": "off",
"multiline-ternary": ["error", "always-multiline"],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 5 }],
"no-extra-parens": ["error", "functions"],
"no-implicit-globals": "off",
"no-magic-numbers": "off",
"no-negated-condition": "off",
"no-plusplus": "off",
"no-ternary": "off",
"no-var": "off",
"object-curly-newline": ["error", { "consistent": true }],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"object-shorthand": "off",
"one-var": "off",
"padded-blocks": "off",
"prefer-arrow-callback": "off",
"prefer-destructuring": "off",
"prefer-template": "off",
"quote-props" : ["error", "consistent-as-needed"],
"require-jsdoc": "off",
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never"
}],
"vars-on-top": "off",
// Temporarily disabled rules
"array-callback-return": "off",
"array-element-newline": "off",
"callback-return": "off",
"consistent-return": "off",
"consistent-this": "off",
"default-case": "off",
"func-style": "off",
"function-paren-newline": "off",
"global-require": "off",
"guard-for-in": "off",
"init-declarations": "off",
"key-spacing": "off",
"line-comment-position": "off",
"max-len": "off",
"max-lines": "off",
"max-lines-per-function": "off",
"new-cap": "off",
"no-inline-comments": "off",
"no-invalid-this": "off",
"no-underscore-dangle": "off",
"one-var-declaration-per-line": "off",
"prefer-spread": "off",
"sort-keys": "off",
"sort-vars": "off"
}
}
|