-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yaml
61 lines (61 loc) · 1.27 KB
/
.eslintrc.yaml
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
root: true
extends:
- eslint:recommended
- plugin:import/recommended
- plugin:import/typescript
- plugin:@typescript-eslint/recommended-requiring-type-checking
- plugin:@typescript-eslint/strict
- xo
- xo-typescript
- plugin:unicorn/recommended
- prettier
plugins:
- eslint-plugin-tsdoc
parserOptions:
jsx: false
ecmaFeatures:
jsx: false
rules:
no-return-assign:
- error
- except-parens
sort-imports:
- warn
- ignoreDeclarationSort: true
import/consistent-type-specifier-style:
- warn
- prefer-top-level
import/order:
- warn
- groups:
- external
- [parent, sibling]
- index
- type
newlines-between: always
alphabetize:
order: asc
import/no-cycle:
- warn
- ignoreExternal: true
import/no-unresolved:
- error
- ignore: ['^#']
tsdoc/syntax: warn
'@typescript-eslint/no-unused-vars':
- error
- ignoreRestSiblings: true
argsIgnorePattern: '^_'
caughtErrors: all
caughtErrorsIgnorePattern: '^_$'
unicorn/custom-error-definition: error
unicorn/prevent-abbreviations: off
unicorn/switch-case-braces:
- warn
- avoid
settings:
import/resolver:
typescript: true
reportUnusedDisableDirectives: true
ignorePatterns:
- dist/