-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
45 lines (45 loc) · 1.4 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"semi": 0,
"no-useless-constructor": 0,
"import/no-unresolved": 0,
"import/extensions": 0,
"import/prefer-default-export": 0,
"func-names": 0,
"no-await-in-loop": 0,
"no-underscore-dangle": 0,
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"consistent-return": 0,
"prefer-destructuring": 0,
"comma-dangle": ["error", "always-multiline"],
"camelcase": 0,
"quotes": 2,
"class-methods-use-this": 0,
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": ["return", "if", "try", "multiline-let", "for", "block-like"] },
{ "blankLine": "always", "prev": ["function"], "next": "*" }
],
"eslint-disable-next-line": 0,
// These rules are not good, but we need to disable them for now
// TODO: Remove these rules and fix the issues.
"no-empty-function": 0,
"no-param-reassign": ["error", { "props": false }],
"array-callback-return": 0,
"eslint-disable-next-line no-restricted-syntax": 0,
"no-continue": 0,
"no-restricted-syntax": 0,
"@typescript-eslint/no-explicit-any": "off"
}
}