-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc
91 lines (91 loc) · 3.35 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"extends": "eslint:all",
"rules": {
"linebreak-style": "off",
"lines-around-comment": "off",
"no-inline-comments": "off",
"line-comment-position": "off",
"func-names": "off",
"object-property-newline": "off",
"no-underscore-dangle": "off",
"no-invalid-this": "off",
"vars-on-top": "off",
"no-negated-condition": "off",
"newline-before-return": "off",
"callback-return": "off",
"sort-vars": "off",
"newline-after-var": "off",
"no-extra-parens": "off",
"no-ternary": "off",
"init-declarations": [ "error", "always" ],
"id-length": [ "error", { "exceptions": [ "x", "y", "i", "j", "$" ], "properties": "never" } ],
"dot-location": [ "error", "property" ],
"multiline-ternary": "off",
"padded-blocks": [ "error", "never" ],
"no-plusplus": "off",
"consistent-return": "error", //
"indent": [ "error", 4 ],
"no-else-return": "error",
"semi": [ "error", "always" ],
"space-unary-ops": "error",
"max-statements": [ "warn", 25 ],
"max-depth": [ "warn", 5 ],
"complexity": [ "warn", 10 ],
"max-len": [ "warn", {
"code": 120,
"ignoreComments": true
} ],
// "max-params": ["warn", 3],
"max-params": "off",
"max-nested-callbacks": [ "error", 2 ],
"no-trailing-spaces": "error",
"quotes": [ "error", "double", { "avoidEscape": true } ],
"keyword-spacing": [ "error", { "before": true, "after": true } ],
"comma-spacing": [ "error", { "before": false, "after": true } ],
"no-multi-spaces": "error",
"space-infix-ops": "error",
"space-before-function-paren": [ "error", "never" ],
"space-before-blocks": "error",
"space-in-parens": [ "error", "never" ],
"one-var": "off", //[ 2, "always" ],
"camelcase": "error",
"no-magic-numbers": [ "error", { "ignore": [ -1, 0, 1, 2, 4, 10, 100 ] } ],
"spaced-comment": [ "error", "always", { "exceptions": [ "-", "+" ] } ],
"quote-props": [ "error", "as-needed" ],
// "object-curly-newline" : ["error", {"minProperties": 3 }],
"object-curly-newline": "off", // ["error", {
// "multiline": true,
// "minProperties": 3
// }], // properties inline is ok, but not more than 3
"max-lines": [ 1, { "max": 400, "skipBlankLines": true, "skipComments": true } ],
"object-curly-spacing": [ "error", "always" ],
// disables es6 rules
"prefer-destructuring": "off",
"prefer-rest-params": "off",
"no-dupe-class-members": "off",
"no-var": "off",
"object-shorthand": "off",
"prefer-arrow-callback": "off",
"prefer-spread": "off",
"prefer-template": "off",
"array-bracket-spacing": [ "error", "always" ],
"no-new": "off",
"sort-keys": "off",
"consistent-this": "off",
"capitalized-comments": "off",
"no-prototype-builtins": "warn",
"no-nested-ternary": "warn",
"no-warning-comments": "warn"
},
"env": {
"browser": true,
"amd": true
},
"globals": {
"logger": true,
"mendix": true,
"mxui": true,
"mx": true,
"module": true
}
}