-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
34 lines (34 loc) · 920 Bytes
/
.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
parser: '@typescript-eslint/parser'
env:
es2022: true
node: true
extends:
- 'prettier'
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
rules:
no-var: error
no-void: error
no-console: warn
prefer-const: error
no-else-return: warn
arrow-body-style: error
no-self-compare: error
no-implied-eval: error
no-invalid-this: error
no-await-in-loop: warn
# Disallow trailing whitespace at the end of lines (auto-fix)
no-trailing-spaces: warn
# Disallow loops with a body that allows only one iteration
no-unreachable-loop: error
no-duplicate-imports: error
no-use-before-define: error
no-template-curly-in-string: error
# Disallow expressions where the operation doesn't affect the value
no-constant-binary-expression: error
no-unused-private-class-members: warn
'@typescript-eslint/ban-ts-comment': warn
ignorePatterns:
- dist/
- build/
- '**/typings/*'