-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.js
43 lines (43 loc) · 1.2 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
module.exports = {
extends: [
"airbnb-base",
"airbnb-typescript/base",
"@loopback/eslint-config",
],
rules: {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/return-await": "warn",
"import/prefer-default-export": "off",
"no-await-in-loop": "warn",
"class-methods-use-this": "warn",
"prefer-destructuring": "warn",
"no-else-return": "warn",
"prefer-promise-reject-errors": "warn",
"no-restricted-syntax": "warn",
"no-continue": "warn",
"consistent-return": "warn",
"eqeqeq": "warn",
"no-param-reassign": "warn",
"prefer-const": "warn",
"prefer-template": "warn",
"prefer-regex-literals": "warn",
"arrow-body-style": "warn",
"default-case": "warn",
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/no-shadow": "off",
"radix": "off",
"no-plusplus": "off",
"spaced-comment": "off",
"import/no-cycle": "off",
},
"overrides": [
{
"files": "src/models/**/*.ts",
"rules": {
"@typescript-eslint/no-useless-constructor": "off",
"max-classes-per-file": "off"
}
},
]
};