forked from Displayr/rhtmlTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
67 lines (57 loc) · 1.47 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
{
"extends": "airbnb",
"globals": {
// all codebases
"angular": true,
"_": true,
"jQuery": true,
"$": true,
// htmlwidget R boundary
"HTMLWidgets": true,
//rhtml base classes
"RhtmlSvgWidget": true,
"RhtmlStatefulWidget": true,
// test globals
"chai": true,
"sinon": true,
"expect": true,
"beforeEach": true,
"describe": true,
"it": true,
// rhtmlTemplate test specific
"Template": true,
// bdd globals
"browser": true,
"element": true,
"by": true,
"protractor": true
},
"rules": {
"arrow-body-style": "off",
"prefer-spread": "off",
"prefer-rest-params": "off",
"class-methods-use-this": "off",
"radix": "off",
"no-param-reassign": "off",
"no-eval": "off",
// specify the maximum length of a line in your program
// http://eslint.org/docs/rules/max-len
"max-len": ["error", 120, 2, {
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
}],
"no-else-return": "off",
"no-underscore-dangle": "off",
"no-console": "off",
"no-plusplus": "off",
"import/no-extraneous-dependencies": "off",
// would prefer these to only affect .spec files
"func-names": "off",
"prefer-arrow-callback": "off",
"import/no-dynamic-require": "off",
"no-use-before-define": ["error", { "functions": false, "classes": true }]
}
}