-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.yaml
95 lines (93 loc) · 2.8 KB
/
.eslintrc.yaml
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
extends:
- eslint:recommended
- plugin:deprecation/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- prettier
env:
node: true
es6: true
ignorePatterns: ["**/scripts", "**/__mocks__", "**/lib"]
overrides:
- files: "**/__tests__/**"
rules:
no-magic-numbers: off
# There are several errors falling under these rules; resolve
"@typescript-eslint/require-await": off
"@typescript-eslint/no-misused-promises": warn
"@typescript-eslint/no-unsafe-return": warn
"@typescript-eslint/restrict-plus-operands": off
"@typescript-eslint/restrict-template-expressions": off
"@typescript-eslint/explicit-function-return-type": off
"@typescript-eslint/unbound-method": warn
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 6
sourceType: module
project:
- "./tsconfig.json"
- "./__tests__/test-tsconfig.json"
plugins:
- "@typescript-eslint"
rules:
"@typescript-eslint/await-thenable": off
"@typescript-eslint/consistent-type-assertions": warn
"@typescript-eslint/restrict-plus-operands": off
"@typescript-eslint/explicit-member-accessibility": off
"@typescript-eslint/explicit-function-return-type": off
"@typescript-eslint/restrict-template-expressions": off
indent": off
"@typescript-eslint/indent":
- error
- 2
# There are several errors falling under these rules; resolve
"@typescript-eslint/no-for-in-array": off
"@typescript-eslint/no-floating-promises": off
"@typescript-eslint/no-unsafe-assignment": off
"@typescript-eslint/no-unsafe-argument": off
"@typescript-eslint/no-unsafe-call": off
"@typescript-eslint/no-unsafe-member-access": off
"@typescript-eslint/no-unsafe-return": off
"@typescript-eslint/no-shadow": error
"@typescript-eslint/no-unused-expressions": error
"@typescript-eslint/no-var-requires": off
array-callback-return: error
complexity:
- warn
- 15
constructor-super: error
curly: warn
getter-return: error
max-len:
- warn
- code: 150
# no-array-constructor: off
no-console: warn
no-const-assign: error
no-dupe-keys: error
no-duplicate-case: error
no-duplicate-imports: error
no-extra-bind: warn
no-extra-semi: error
# no-func-assign: error
no-implicit-globals: error
# no-import-assign: error
no-irregular-whitespace: warn
no-magic-numbers:
- warn
- "ignore": [-1, 0, 1, 2, 4]
no-multiple-empty-lines: warn
no-return-await: warn
no-sequences: warn
no-shadow: off
no-sparse-arrays: warn
# no-this-before-super: error
# no-undef: warn
no-unreachable: error
no-unsafe-negation: error
no-unused-expressions: off
no-unused-vars: off
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }]
# prefer-const: warn
prefer-object-spread: warn
space-in-parens: warn
root: true