forked from markokajzer/discord-soundbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
70 lines (59 loc) · 1.27 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
---
parser: "@typescript-eslint/parser"
plugins:
- "@typescript-eslint"
- jest
- prettier
extends:
- airbnb-base
- plugin:@typescript-eslint/recommended
- plugin:jest/recommended
- plugin:jest/style
- prettier
- prettier/@typescript-eslint
env:
jest: true
parserOptions:
ecmaVersion: 6
sourceType: module
rules:
import/no-unresolved: off
arrow-body-style:
- error
- as-needed
- requireReturnForObjectLiteral: false
arrow-parens:
- error
- as-needed
class-methods-use-this: off
curly:
- error
- multi-line
- consistent
no-console:
- error
- allow:
- info
- error
no-else-return:
- error
- allowElseIf: false
no-multi-spaces:
- error
- ignoreEOLComments: true
radix: off
# @typescript-eslint
# Does not work with class fields :(
lines-between-class-members:
- error
- always
- exceptAfterSingleLine: true
"@typescript-eslint/explicit-function-return-type": off
"@typescript-eslint/explicit-member-accessibility": off
"@typescript-eslint/indent": off
"@typescript-eslint/no-non-null-assertion": off
"@typescript-eslint/no-object-literal-type-assertion": off
# eslint-plugin-jest
jest/no-truthy-falsy: error
# Custom rules
prefer-early-return: error