forked from insidewhy/wildcard-mock-link
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
73 lines (73 loc) · 1.55 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
62
63
64
65
66
67
68
69
70
71
72
73
---
settings:
react:
version: 'detect'
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
- 'react'
- 'react-hooks'
extends:
- 'plugin:@typescript-eslint/recommended'
- 'plugin:react/recommended'
- eslint-config-prettier
- plugin:import/errors
- plugin:import/warnings
- plugin:import/typescript
rules:
no-use-before-define:
- warn
'@typescript-eslint/naming-convention':
- error
- selector: interface
format:
- PascalCase
custom:
regex: "^[A-Z][a-z]"
match: true
'@typescript-eslint/no-use-before-define':
- warn
'@typescript-eslint/explicit-function-return-type':
- warn
- allowExpressions: true
'@typescript-eslint/no-unused-vars':
- warn
- argsIgnorePattern: '^_'
no-unused-expressions:
- error
no-underscore-dangle:
- warn
- enforceInMethodNames: true
allow:
- _id
- __typename
react/display-name:
- warn
react/prop-types:
- off
'@typescript-eslint/no-non-null-assertion':
- off
class-methods-use-this:
- error
import/order:
- error
- newlines-between: always
alphabetize:
order: asc
groups:
- - builtin
- external
- - parent
- sibling
- index
react-hooks/rules-of-hooks:
- error
react-hooks/exhaustive-deps:
- error
# conflicts with allowSyntheticDefaultImports tsconfig option
import/default:
- off
'@typescript-eslint/member-delimiter-style':
- error
- multiline:
delimiter: none