-
Notifications
You must be signed in to change notification settings - Fork 20
/
.eslintrc.yml
119 lines (113 loc) · 2.66 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
root: true
parser: '@typescript-eslint/parser'
parserOptions:
project: ./tsconfig.json
sourceType: module
plugins:
- '@typescript-eslint'
- prettier
- import
- jest
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:prettier/recommended
- plugin:import/typescript
- plugin:jest/recommended
env:
jest: true
node: true
es6: true
rules:
'@typescript-eslint/await-thenable': error
'@typescript-eslint/explicit-module-boundary-types': off
'@typescript-eslint/explicit-function-return-type': off
'@typescript-eslint/explicit-member-accessibility': off
'@typescript-eslint/indent': off
'@typescript-eslint/interface-name-prefix': off
'@typescript-eslint/member-delimiter-style': off
'@typescript-eslint/member-ordering': error
'@typescript-eslint/no-confusing-non-null-assertion': error
'@typescript-eslint/no-empty-interface': off
'@typescript-eslint/no-explicit-any': error
'@typescript-eslint/no-extra-non-null-assertion': error
'@typescript-eslint/no-non-null-assertion': error
'@typescript-eslint/no-use-before-define': off
'@typescript-eslint/no-unused-vars':
- error
- argsIgnorePattern: '^_'
'@typescript-eslint/no-var-requires': off
'@typescript-eslint/switch-exhaustiveness-check': error
array-bracket-newline:
- error
- consistent
array-bracket-spacing:
- error
- never
array-callback-return: error
block-spacing:
- error
brace-style: off
camelcase:
- off
- properties: never
complexity: error
computed-property-spacing:
- error
- never
curly:
- error
- all
default-case: off
default-case-last: off
dot-location:
- error
- property
dot-notation: error
eqeqeq: error
eol-last: error
func-call-spacing:
- error
- never
func-style: error
import/no-unresolved: off
import/order:
- error
- newlines-between: always
groups:
- builtin
- external
- internal
- [parent, sibling, index]
alphabetize:
order: 'asc'
pathGroupsExcludedImportTypes:
- builtin
key-spacing: error
keyword-spacing: error
lines-between-class-members: off
newline-per-chained-call: off
no-console:
- error
- allow:
- warn
- error
no-dupe-keys: error
no-else-return: error
no-implicit-coercion: error
no-invalid-this: error
no-lonely-if: error
no-multi-spaces: error
no-return-await: error
no-trailing-spaces: error
no-useless-return: error
no-unneeded-ternary: error
prefer-arrow-callback:
- error
prefer-const: error
prettier/prettier:
- error
template-curly-spacing:
- error
- never
valid-typeof: error