-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.js
79 lines (79 loc) · 1.42 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
module.exports = {
env: {
browser: true,
es6: true,
jest: true
},
extends: 'airbnb-base',
globals: {
OO: 0,
SRC_ROOT: 0,
COMMON_SRC_ROOT: 0,
TEST_ROOT: 0,
ADB: 0,
MockGa: 0,
resetMockGa: 0,
Conviva: 0,
jsdom: 0,
AppMeasurement: 0,
Visitor: 0,
Ooyala: 0,
_: 0,
recordedEvent: 0,
_gaq: 0,
ooyalaGaTrackSettings: 0,
ga: 0,
listFiles: 0,
resetGlobalInstances: 0,
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
"max-len": [
"error", 110,
{
"ignoreComments": true,
"ignorePattern": "if \\(\/\\(\\w*|\\)\/",
"ignoreUrls": true,
"ignoreRegExpLiterals": true,
"ignoreTemplateLiterals": true
}
],
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-param-reassign": [
"error",
{
"props": false
}
],
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}],
"valid-jsdoc": [
"error",
{
"prefer": {
"return": "returns"
},
"requireReturn": false
}
],
"no-underscore-dangle": 0,
"func-names": 0,
},
};