-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
84 lines (84 loc) · 2.51 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
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"plugins": [
"@typescript-eslint",
"prefer-arrow"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/dot-notation": [
"error",
{
"allowIndexSignaturePropertyAccess": true,
}
],
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}],
"@typescript-eslint/quotes": [
"error",
"single",
{ "allowTemplateLiterals": true }
],
"@typescript-eslint/semi": ["error", "always", {
"omitLastInOneLineBlock": true
}],
"@typescript-eslint/unbound-method": "off",
"default-case": "warn",
"import/no-cycle": "off",
"import/no-deprecated": "warn",
"import/prefer-default-export": "off",
"linebreak-style": "off",
"max-len": [
"warn",
{
"code": 140,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreComments": true
}
],
"no-await-in-loop": "warn",
"no-continue": "warn",
"no-param-reassign": ["error", { "props": false }],
"no-plusplus": "off",
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"no-var": "error",
"object-curly-newline": ["error", {
"ObjectExpression": { "minProperties": 4, "multiline": true, "consistent": true },
"ObjectPattern": { "minProperties": 4, "multiline": true, "consistent": true },
"ImportDeclaration": { "minProperties": 6, "multiline": true, "consistent": true },
"ExportDeclaration": { "minProperties": 6, "multiline": true, "consistent": true }
}],
"prefer-arrow/prefer-arrow-functions": [
"warn",
{
"disallowPrototype": true,
"singleReturnOnly": false,
"classPropertiesAllowed": false
}
],
"prefer-destructuring": ["error", { "object": true, "array": false }]
}
}