-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
71 lines (71 loc) · 1.75 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
{
"parser": "babel-eslint",
"extends": "airbnb-base",
"plugins": [
"compat",
"jsdoc",
"require-jsdoc"
],
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true,
"jest": true,
"jasmine": true
},
"rules": {
"import/prefer-default-export": [0],
"import/no-extraneous-dependencies": [0],
"import/no-dynamic-require": [0],
"import/no-unresolved": [0],
"import/extensions": [0],
"compat/compat": [0],
"generator-star-spacing": [0],
"consistent-return": [0],
"global-require": [1],
"no-else-return": [0],
"no-restricted-syntax": [0],
"no-use-before-define": [0],
"no-nested-ternary": [0],
"arrow-body-style": [0],
"no-bitwise": [0],
"no-cond-assign": [0],
"max-len": ["error", { "code": 150 }],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
"object-curly-newline": [0],
"function-paren-newline": [0],
"no-restricted-globals": [0],
"require-yield": [1],
"valid-jsdoc": [2, {
"prefer": {
"return": "returns"
}
}],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}],
"no-console": ["error", { "allow": ["info", "error", "time", "timeEnd"] }],
"no-param-reassign": ["error", { "props": false }]
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"settings": {
"polyfills": ["fetch", "promises"]
}
}