-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
139 lines (133 loc) · 3.34 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
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
env:
node: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended-type-checked
- plugin:@typescript-eslint/stylistic-type-checked
ignorePatterns:
- build/
- lib/
- types/
overrides:
- files: "**/*.test.ts"
env:
jest/globals: true
plugins:
- jest
parserOptions:
project:
- tsconfig.linting.json
parser: "@typescript-eslint/parser"
parserOptions:
ecmaFeatures:
impliedStrict: true
ecmaVersion: 2022
project:
- tsconfig.json
plugins:
- "@typescript-eslint"
root: true
rules:
array-bracket-spacing: 1
arrow-spacing: 1
block-spacing: 1
brace-style: 1
camelcase: 1
class-methods-use-this: 1
comma-dangle: [1, always-multiline]
comma-spacing: 1
comma-style: 1
complexity: 1
computed-property-spacing: 1
consistent-return: 1
consistent-this: 1
default-case-last: 1
default-case: 2
dot-location: [1, property]
dot-notation: [1, { allowKeywords: false }]
eqeqeq: 1
func-call-spacing: 1
generator-star-spacing: [1, before]
guard-for-in: 1
indent: [1, 2]
key-spacing: 1
linebreak-style: 2
lines-between-class-members: [1, always, { exceptAfterSingleLine: true }]
logical-assignment-operators: [1, always, { enforceForIfStatements: true }]
max-depth: 1
max-len:
- 1
- code: 80
ignorePattern: ^\s*/[/*] eslint-disable
ignoreUrls: true
max-lines-per-function: 1
max-lines: 1
newline-per-chained-call: [1, { ignoreChainWithDepth: 2 }]
no-alert: 2
no-console: 2
no-implied-eval: 1
no-invalid-this: 2
no-lone-blocks: 1
no-lonely-if: 1
no-loop-func: 1
no-mixed-operators: 1
no-multi-assign: 1
no-multi-spaces: 1
no-multiple-empty-lines: [1, { max: 1 }]
no-negated-condition: 1
no-octal-escape: 2
no-return-assign: 1
no-self-compare: 1
no-shadow: 1
no-tabs: 2
no-template-curly-in-string: 1
no-throw-literal: 2
no-trailing-spaces: 1
no-undefined: 1
no-unexpected-multiline: 1
no-unused-expressions: 1
# For compatibility with typescript-eslint
no-unused-vars: 0
no-useless-concat: 1
no-var: 1
no-whitespace-before-property: 1
object-shorthand: 1
operator-assignment: 1
prefer-const: 1
prefer-destructuring: 1
prefer-exponentiation-operator: 1
prefer-named-capture-group: 1
prefer-object-has-own: 1
prefer-object-spread: 1
prefer-regex-literals: 1
prefer-rest-params: 1
prefer-spread: 1
prefer-template: 1
quote-props: [1, as-needed]
quotes: 1
radix: 1
require-await: 1
require-yield: 1
rest-spread-spacing: 1
semi-spacing: 1
semi-style: 1
sort-imports: [1, { ignoreCase: true, ignoreDeclarationSort: true }]
sort-vars: 1
space-before-blocks: 1
space-before-function-paren: [1, { named: never }]
space-in-parens: 1
space-infix-ops: 1
space-unary-ops: 1
spaced-comment: 1
unicode-bom: 2
yoda: 1
"@typescript-eslint/array-type": 1
# In VS Code, this allows developers to manually specify
# inferrable types so the distracting inline hints go away
"@typescript-eslint/no-inferrable-types": 0
# https://github.com/typescript-eslint/typescript-eslint/issues/4912
"@typescript-eslint/no-unsafe-argument": 0
"@typescript-eslint/no-unsafe-assignment": 0
"@typescript-eslint/no-unsafe-member-access": 0
"@typescript-eslint/no-unused-vars": [1, { argsIgnorePattern: ^_, varsIgnorePattern: ^_ }]
"@typescript-eslint/unbound-method": 0