-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.yml
52 lines (47 loc) · 1.03 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
---
# Style configuration
extends:
- airbnb-base
- plugin:import/errors
- plugin:import/warnings
- plugin:import/typescript
- prettier
- plugin:@typescript-eslint/recommended
plugins:
- "@typescript-eslint/eslint-plugin"
- import
rules:
# Configure required extensions
import/extensions:
- warn
- ts: never
# Too pedantic / sometimes encourages Node anti-patterns
import/prefer-default-export: off
no-await-in-loop: 0
no-restricted-syntax: 0
class-methods-use-this: 0
no-plusplus:
- error
- allowForLoopAfterthoughts: true
# Configure no-use-before-define
no-use-before-define: 0
"@typescript-eslint/no-use-before-define":
- error
- typedefs: false
ignoreTypeReferences: true
functions: false
classes: false
# ESLint Project Settings
settings:
import/parsers:
"@typescript-eslint/parser":
- ".ts"
env:
es6: true
node: true
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 2020
sourceType: module
ecmaFeatures:
modules: true