-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.json
148 lines (148 loc) · 4.34 KB
/
.eslintrc.json
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"extends": ["airbnb-base", "airbnb-typescript/base", "prettier"],
"plugins": [
"eslint-plugin-tsdoc",
"jsdoc",
"only-warn",
"import",
"sort-imports-es6-autofix",
"deprecation",
"eslint-plugin-node"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/no-floating-promises": ["warn"],
"@typescript-eslint/no-misused-promises": [
"warn",
{
"checksVoidReturn": {
"arguments": false
}
}
],
"node/no-sync": ["warn"],
"import/order": ["off"],
"no-lonely-if": ["off"],
"no-else-return": ["off"],
"deprecation/deprecation": "warn",
"@typescript-eslint/await-thenable": ["warn"],
"@typescript-eslint/no-unnecessary-condition": ["warn"],
"@typescript-eslint/require-await": ["warn"],
"@typescript-eslint/quotes": ["warn", "double"],
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
"allowExpressions": true
}
],
"@typescript-eslint/type-annotation-spacing": ["warn"],
"import/no-cycle": ["warn"],
"import/no-unused-modules": [
1,
{ "unusedExports": true, "ignoreExports": ["src/typings"] }
],
"@typescript-eslint/consistent-type-imports": ["warn"],
"jsdoc/require-jsdoc": [
"warn",
{
"publicOnly": true
}
],
"sort-imports-es6-autofix/sort-imports-es6": ["warn"],
"valid-jsdoc": [
"warn",
{
"requireReturnType": false,
"requireParamType": false,
"requireReturn": false
}
],
"tsdoc/syntax": ["warn"],
"max-len": [
"warn",
{
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"code": 200
}
],
"no-restricted-syntax": [
"warn",
{
"selector": "CallExpression[callee.property.name='forEach']",
"message": "Do not use `forEach()`, use `for/of` instead"
}
],
"no-continue": ["off"],
"no-plusplus": ["off"],
"no-async-promise-executor": ["off"],
"lines-between-class-members": [
"warn",
"always",
{ "exceptAfterSingleLine": true }
],
"@typescript-eslint/lines-between-class-members": ["off"],
"no-param-reassign": ["off"],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/member-ordering": [
"warn",
{
"default": [
"public-field",
"protected-field",
"private-field",
"public-method",
"protected-method",
"private-method"
]
}
],
"prefer-destructuring": ["off"],
"func-names": ["off"],
"@typescript-eslint/dot-notation": ["off"],
"no-multi-str": ["off"],
"no-console": ["warn"],
"padding-line-between-statements": [
"warn",
{
"blankLine": "always",
"prev": "block-like",
"next": "*"
},
{
"blankLine": "always",
"prev": "multiline-expression",
"next": "multiline-expression"
},
{
"blankLine": "always",
"prev": "multiline-let",
"next": "*"
},
{
"blankLine": "always",
"prev": "multiline-const",
"next": "*"
},
{
"blankLine": "always",
"prev": "multiline-block-like",
"next": "*"
},
{
"blankLine": "always",
"prev": "*",
"next": "function"
}
],
"no-bitwise": ["off"],
"class-methods-use-this": ["off"]
}
}