-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
84 lines (84 loc) · 1.51 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es6: true,
},
extends: 'airbnb-base',
// TODO: delete when we go to jest.
globals: {
expect: 0,
OO: 0,
it: 0,
describe: 0,
_: 0,
$: 0,
after: 0,
before: 0,
beforeEach: 0,
afterEach: 0,
tv: 0,
ActiveXObject: 0,
startAfterLoad: 0,
google: 0,
TEST_ROOT: 0,
COMMON_SRC_ROOT: 0,
FakeAmc: 0,
SRC_ROOT: 0,
fwContext: 0,
AdInstance: 0,
getTemporalSlots: 0,
fwParams: 0,
setVideoAsset: 0,
jsdom: 0,
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
"max-len": [
"error", 110,
{
"ignoreComments": true,
"ignorePattern": "if \\(\/\\(\\w*|\\)\/",
"ignoreUrls": true,
"ignoreRegExpLiterals": true,
"ignoreTemplateLiterals": true
}
],
"func-names": 0,
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-param-reassign": [
"error",
{
"props": false
}
],
"no-underscore-dangle": 0,
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}],
"valid-jsdoc": [
"error",
{
"prefer": {
"return": "returns"
},
"requireReturn": false
}
],
},
};