-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.35 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
module.exports = {
"extends": [
"standard-with-typescript",
"plugin:eslint-comments/recommended",
"plugin:jsdoc/recommended",
],
"rules": {
// Semistandard
"semi": [2, "always"],
"no-extra-semi": 2,
// Semistandard for Typescript
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
},
],
// JS / Common
"no-useless-return": ["off"],
"comma-dangle": ["error", "only-multiline"],
"no-console": ["warn"],
// JS rules that conflicts with Typescript
"no-dupe-class-members": ["off"],
// Typescript
"@typescript-eslint/strict-boolean-expressions": ["off"],
"@typescript-eslint/explicit-function-return-type": ["off"],
"@typescript-eslint/restrict-template-expressions": ["off"],
"@typescript-eslint/no-namespace": ["off"],
"@typescript-eslint/ban-ts-comment": ["warn"],
"@typescript-eslint/promise-function-async": [
"error",
{
"allowedPromiseNames": ["Thenable"],
"checkArrowFunctions": false,
"checkFunctionDeclarations": true,
"checkFunctionExpressions": true,
"checkMethodDeclarations": true
}
],
}
};