This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
119 lines (119 loc) · 2.09 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
env:
browser: true
es2020: true
jest: true
extends:
- standard
- standard-jsx
- standard-react
- standard-with-typescript
- eslint:recommended
- plugin:react/all
- plugin:react-hooks/recommended
- plugin:import/errors
- plugin:import/warnings
- plugin:import/react
- plugin:import/typescript
- plugin:compat/recommended
- plugin:@typescript-eslint/recommended
- plugin:radar/recommended
- plugin:jest/recommended
- plugin:jest/style
parser: "@typescript-eslint/parser"
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: 2020
sourceType: module
project: './tsconfig.json'
plugins:
- react
- react-hooks
- '@typescript-eslint'
- radar
- jest
rules:
import/order:
- 1
import/prefer-default-export:
- 1
react/jsx-filename-extension:
- 1
- extensions:
- ".js"
- ".jsx"
- ".ts"
- ".tsx"
react/jsx-indent:
- 0
- 2
react/jsx-indent-props:
- 2
- 2
react/jsx-max-depth:
- 0
react/function-component-definition:
- 1
- namedComponents: arrow-function
react/forbid-component-props:
- 1
react/no-multi-comp:
- 2
- ignoreStateless: true
react/jsx-max-props-per-line:
- 1
- maximum: 1
when: multiline
react/jsx-no-bind:
- 2
- ignoreRefs: true
react/jsx-no-literals:
- 1
react/require-default-props:
- 0
no-void:
- 2
- allowAsStatement: true
indent:
- error
- 2
- SwitchCase: 1
offsetTernaryExpressions: true
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- never
operator-linebreak:
- 2
- after
- overrides:
"?": ignore
":": ignore
no-use-before-define: 'off'
"@typescript-eslint/no-use-before-define":
- error
settings:
react:
- pragma: React
- version: detect
import/resolver:
node:
extensions:
- ".js"
- ".jsx"
- ".ts"
- ".tsx"
typescript:
alwaysTryTypes: true
project: "*/tsconfig.json"
import/parsers:
"@typescript-eslint/parser":
- ".ts"
- ".tsx"