-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.yml
75 lines (68 loc) · 1.58 KB
/
.eslintrc.yml
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
env:
browser: false
node: true
es6: true
jest: true
parser: "@typescript-eslint/parser"
plugins:
- "@typescript-eslint/eslint-plugin"
- "unused-imports"
- "import"
- "security"
extends:
- "airbnb-typescript/base"
- "plugin:security/recommended"
- "plugin:@typescript-eslint/eslint-recommended"
- "plugin:@typescript-eslint/recommended"
- "plugin:prettier/recommended"
parserOptions:
sourceType: module
ecmaVersion: 2018
project: tsconfig.json
rules:
"@typescript-eslint/interface-name-prefix": off
semi:
- error
- always
quotes:
- error
- single
"@typescript-eslint/explicit-function-return-type": off
"@typescript-eslint/no-explicit-any": off
"@typescript-eslint/member-delimiter-style": error
"@typescript-eslint/no-unused-vars": off
unused-imports/no-unused-imports-ts: error
unused-imports/no-unused-vars-ts:
- error
- vars: all
varsIgnorePattern: "^_"
args: after-used
argsIgnorePattern: "^_"
object-curly-newline:
- error
- ObjectExpression:
minProperties: 6
multiline: true
consistent: true
node/no-unsupported-features/es-syntax: off
no-await-in-loop: 0
import/prefer-default-export: off
max-len:
- error
- code: 120
ignoreStrings: true
eol-last: error
class-methods-use-this: 0
no-underscore-dangle:
- error
- allowAfterSuper: true
allowAfterThis: true
no-plusplus:
- error
- allowForLoopAfterthoughts: true
security/detect-object-injection: off
settings:
import/resolver:
node:
extensions:
- ".ts"