-
Notifications
You must be signed in to change notification settings - Fork 220
/
.eslintrc
59 lines (55 loc) · 1.54 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
{
// This is a set of basic and sensible rules that should not change except at major ESLint versions
"extends": [
"eslint:recommended",
"plugin:promise/recommended"
],
"parserOptions": {
"ecmaVersion": 2018
},
// Environments that we run in
"env": {
"node": true,
"mocha": true,
"es6": true,
"browser": true
},
// Extra plugins required
"plugins": [
"ideal", // for tabs in file
"promise"
],
// Additional rules
"rules": {
"array-bracket-spacing": ["error", "never"],
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"dot-notation": "error",
"eqeqeq": "error",
"ideal/no-tabs-in-file": "error",
"indent": ["error", 4, {"SwitchCase": 1}],
"max-len": ["error", 1000, {"ignoreComments": true}],
"new-cap": ["error", {"capIsNewExceptions": ["Router"]}],
"no-console": "error",
"no-eval": "error",
"no-implied-eval": "error",
"no-floating-decimal": "error",
"no-lonely-if": "error",
"no-spaced-func": "error",
"no-throw-literal": "off",
"no-trailing-spaces": "error",
"no-use-before-define": ["error", {"functions": false}],
"no-useless-call": "error",
"no-with": "error",
"operator-linebreak": ["error", "after"],
"require-jsdoc": ["error", {
"require": {
"ClassDeclaration": true,
"MethodDefinition": true,
"FunctionDeclaration": true
}
}],
"semi": ["error", "always"],
"strict": ["error", "function"],
"valid-jsdoc": ["error", {"requireReturn": false}]
}
}