-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
54 lines (53 loc) · 2.11 KB
/
.eslintrc.json
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
{
"extends": "airbnb-base",
"env": {
"es6": true,
"node": true,
"mocha": true
},
"plugins": [
"import",
"node",
"promise"
],
"rules": {
"comma-dangle": ["error", "never"],
"max-len": ["error", {"code": 120, "tabWidth": 4, "ignoreUrls": true}],
"indent": [ "warn", 2, { "SwitchCase": 1} ],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"no-underscore-dangle": ["off"], // @†odo investigate should we activate this
"no-console": "error",
"no-constant-condition": "error",
"no-control-regex": "off",
"dot-notation": "off",
"valid-jsdoc": "off",
"object-curly-spacing": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"computed-property-spacing": ["error", "never"],
//"func-names": ["error", "as-needed"], /** @todo could be activated later */
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
// "prefer-arrow-callback": ["off"], // when using --fix
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"one-var": ["error", { "initialized": "never" }],
"one-var-declaration-per-line": ["error", "initializations"],
"func-names": ["error", "as-needed"],
"object-shorthand": "off",
"function-paren-newline": "off",
"prefer-object-spread": "off",
"no-multiple-empty-lines": ["error", { "max": 3, "maxEOF": 2 }],
"implicit-arrow-linebreak": "off",
"function-call-argument-newline": "off",
"arrow-parens": "off",
"operator-linebreak": "off",
"import/extensions": "off",
"object-curly-newline": "off",
"import/no-useless-path-segments": "off",
"import/order": "off",
"no-promise-executor-return": "off",
"prefer-destructuring": "off",
"lines-between-class-members": "off",
"max-classes-per-file": "off",
"camelcase": "off",
"default-param-last": "off"
}
}