forked from koishijs/koishi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
95 lines (78 loc) · 1.76 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
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
root: true
parser: '@typescript-eslint/parser'
settings:
import/parsers:
'@typescript-eslint/parser': ['.ts']
import/resolver:
typescript:
alwaysTryTypes: true
env:
browser: true
node: true
mocha: true
es2020: true
globals:
KOISHI_CONFIG: true
extends:
- standard
plugins:
- mocha
- '@typescript-eslint'
rules:
array-callback-return: off
comma-dangle:
- warn
- always-multiline
curly: warn
dot-notation: off
generator-star-spacing:
- warn
- after
max-len:
- warn
- 160
multiline-ternary: off
no-ex-assign: off
no-mixed-operators: off
no-unused-expressions: off
no-use-before-define: off
no-useless-escape: off
no-redeclare: off
no-return-assign: off
no-sequences: off
one-var: off
operator-linebreak: off
quotes:
- warn
- single
- avoidEscape: true
allowTemplateLiterals: true
yield-star-spacing:
- warn
- after
yoda: off
# node
node/no-callback-literal: off
# typescript
import/export: off
default-param-last: off
'@typescript-eslint/default-param-last': error
func-call-spacing: off
'@typescript-eslint/func-call-spacing': error
keyword-spacing: off
'@typescript-eslint/keyword-spacing': error
no-unused-vars: off
'@typescript-eslint/no-unused-vars': warn
no-dupe-class-members: off
'@typescript-eslint/no-dupe-class-members': error
# https://github.com/typescript-eslint/typescript-eslint/issues/239
no-inner-declarations: off
no-useless-constructor: off
'@typescript-eslint/no-useless-constructor': warn
space-before-function-paren: off
'@typescript-eslint/space-before-function-paren':
- error
- anonymous: always
asyncArrow: always
named: never
'@typescript-eslint/type-annotation-spacing': error