-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
74 lines (74 loc) · 2.03 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
module.exports = {
extends: ["eslint:recommended", "@loopback/eslint-config"],
overrides: [
{
files: ["src/__tests__/**"],
rules: { "max-nested-callbacks": "off" }
}
],
parserOptions: {
ecmaVersion: 9,
sourceType: "module"
},
globals: {
require: true
},
env: {
es6: true
},
rules: {
"no-unused-vars": 2,
"global-require": 1,
"no-empty": 2,
quotes: [0],
"no-console": 2,
"no-undef": 2,
"no-const-assign": 2,
"prefer-const": 2,
"func-call-spacing": 2,
"no-undef-init": 2,
indent: [
2,
4,
{
FunctionExpression: { parameters: "first" },
CallExpression: { arguments: "first" },
SwitchCase: 1,
ObjectExpression: "first",
ArrayExpression: "first"
}
],
curly: [2, "multi-line"],
"object-curly-spacing": [2, "always"],
"comma-dangle": [2, "never"],
"max-len": [2, 150],
"max-params": [1, 4],
"max-lines": [1, 500],
"max-depth": [1, 3],
"max-nested-callbacks": [1, 3],
"@typescript-eslint/no-explicit-any": "off",
"no-restricted-modules": [
2,
{
paths: [
{
name: "winston",
message: "Please use the wrapper instead."
},
{
name: "fs-extra",
message: "Please use the 'fs' module instead."
},
{
name: "async",
message: "Please use the native 'Promise' instead."
},
{
name: "mkdirp",
message: "Please use the 'fs' module instead."
}
]
}
]
}
};