-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
.eslintrc
71 lines (71 loc) · 1.78 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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"extends": "eslint:recommended",
"rules": {
"no-useless-escape": "off",
"no-console": "off",
"camelcase": "error",
"curly": "error",
"eqeqeq": "error",
"no-extend-native": "error",
"wrap-iife": ["error", "any"],
"indent": ["error", 4, {
"SwitchCase": 1,
"MemberExpression": "off",
"CallExpression": {"arguments": "first"},
"ArrayExpression": "first",
"flatTernaryExpressions": true
}
],
"no-caller": "error",
"no-new": "error",
"no-unused-vars": ["error", {"args": "none"}],
"max-params": ["error", 5],
"max-depth": ["error", 4],
"complexity": ["error", 10],
"max-len": ["error", 140],
"quotes": ["error", "single"],
"no-var": "error",
"prefer-const": "error",
"no-shadow": "error",
"prefer-arrow-callback": "error",
"arrow-body-style": "error",
"implicit-arrow-linebreak": "error",
"arrow-parens": ["error", "as-needed"],
"space-before-function-paren": ["error", "always"],
"no-useless-concat": "error",
"prefer-template": "error",
"template-curly-spacing": "error",
"valid-jsdoc": ["error", {"requireParamDescription": false, "requireReturnDescription": false}]
},
"overrides": [
{
"files": ["spec/**/*.js", "web-src/**/*.js"],
"globals": {
"crossfilter": false,
"d3": false,
"dc": false
}
},
{
"files": ["spec/**/*.js"],
"globals": {
"jasmine": false,
"expect": false,
"describe": false,
"it": false,
"beforeEach": false,
"afterEach": false,
"spyOn": false
}
}
]
}