This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
149 lines (148 loc) · 3.01 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
root: true
plugins:
- react
- "@typescript-eslint"
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:react-hooks/recommended
- plugin:@typescript-eslint/recommended
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 12
sourceType: module
ecmaFeatures:
jsx: true
settings:
react:
version: detect
ignorePatterns:
- "**/node_modules/**"
- "**/dist/**"
- "**/lib/**"
- "**/public_html/**"
rules:
indent:
- warn
- tab
- { "SwitchCase": 1 }
array-bracket-spacing:
- warn
- always
quotes:
- warn
- double
object-curly-spacing:
- warn
- always
- objectsInObjects: false
arraysInObjects: false
semi: warn
comma-dangle:
- warn
- only-multiline
array-bracket-newline:
- warn
- consistent
comma-spacing: warn
template-curly-spacing:
- warn
- always
eqeqeq:
- warn
- always
semi-spacing: warn
max-statements-per-line: warn
space-in-parens: warn
space-infix-ops: warn
keyword-spacing: warn
space-before-function-paren:
- warn
- never
key-spacing: warn
no-trailing-spaces:
- warn
- ignoreComments: true
skipBlankLines: true
arrow-parens:
- warn
- as-needed
func-call-spacing: warn
no-mixed-spaces-and-tabs:
- warn
no-multiple-empty-lines:
- warn
- max: 1
maxBOF: 0
no-regex-spaces: warn
no-multi-spaces: warn
space-unary-ops: warn
lines-around-comment:
- warn
- beforeBlockComment: true
beforeLineComment: true
afterBlockComment: false
afterLineComment: false
allowBlockStart: false
allowBlockEnd: false
no-whitespace-before-property: warn
spaced-comment:
- warn
- always
- line:
markers:
- "/"
exceptions:
- "-"
- "+"
block:
markers:
- "!"
exceptions:
- "*"
balanced: true
computed-property-spacing: warn
rest-spread-spacing: warn
function-call-argument-newline:
- warn
- consistent
nonblock-statement-body-position: warn
space-before-blocks: warn
no-dupe-args: warn
no-dupe-else-if: warn
brace-style: warn
react/react-in-jsx-scope: off
react/jsx-curly-spacing:
- warn
- when: always
spacing:
objectLiterals: never
allowMultiline: false
react/jsx-indent-props:
- warn
- tab
react/jsx-sort-props: warn
react/self-closing-comp: off
react/jsx-props-no-multi-spaces: warn
react/jsx-equals-spacing: warn
react/jsx-max-props-per-line:
- warn
- maximum: 1
when: multiline
react/jsx-no-useless-fragment: warn
react/jsx-tag-spacing:
- warn
- closingSlash: never
beforeSelfClosing: always
afterOpening: never
beforeClosing: never
no-undef: off
no-prototype-builtins: off
no-unused-vars: off
"@typescript-eslint/no-unused-vars":
- warn
- varsIgnorePattern: "^_.*"
no-empty: off
"@typescript-eslint/no-empty-function": off
react/display-name: off
no-fallthrough: off