-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
prettier.ts
208 lines (202 loc) · 7.52 KB
/
prettier.ts
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
import type { TSESLint } from "@typescript-eslint/utils";
// @ts-expect-error eslint-config-prettier is not typed
import eslintConfigPrettier from "eslint-config-prettier";
const rules: TSESLint.FlatConfig.Rules = {
...eslintConfigPrettier.rules,
"line-comment-position": 0,
"no-inline-comments": 0,
// Stylistic rules enabled by either /react that should be disabled when using Prettier
"@stylistic/jsx/jsx-one-expression-per-line": 0,
"@stylistic/jsx/jsx-newline": 0,
"@stylistic/jsx/jsx-props-no-multi-spaces": 0,
"@stylistic/jsx/jsx-tag-spacing": 0,
"@stylistic/jsx/jsx-wrap-multilines": 0,
// TODO: This should be removed when https://github.com/prettier/eslint-config-prettier/pull/272 is merged and released to eslint-config-prettier
"@stylistic/array-bracket-newline": 0,
"@stylistic/array-bracket-spacing": 0,
"@stylistic/array-element-newline": 0,
"@stylistic/arrow-parens": 0,
"@stylistic/arrow-spacing": 0,
"@stylistic/block-spacing": 0,
"@stylistic/brace-style": 0,
"@stylistic/comma-dangle": 0,
"@stylistic/comma-spacing": 0,
"@stylistic/comma-style": 0,
"@stylistic/computed-property-spacing": 0,
"@stylistic/dot-location": 0,
"@stylistic/eol-last": 0,
"@stylistic/func-call-spacing": 0,
"@stylistic/function-call-argument-newline": 0,
"@stylistic/function-call-spacing": 0,
"@stylistic/function-paren-newline": 0,
"@stylistic/generator-star-spacing": 0,
"@stylistic/implicit-arrow-linebreak": 0,
"@stylistic/indent-binary-ops": 0,
"@stylistic/indent": 0,
"@stylistic/js/array-bracket-newline": 0,
"@stylistic/js/array-bracket-spacing": 0,
"@stylistic/js/array-element-newline": 0,
"@stylistic/js/arrow-parens": 0,
"@stylistic/js/arrow-spacing": 0,
"@stylistic/js/block-spacing": 0,
"@stylistic/js/brace-style": 0,
"@stylistic/js/comma-dangle": 0,
"@stylistic/js/comma-spacing": 0,
"@stylistic/js/comma-style": 0,
"@stylistic/js/computed-property-spacing": 0,
"@stylistic/js/dot-location": 0,
"@stylistic/js/eol-last": 0,
"@stylistic/js/func-call-spacing": 0,
"@stylistic/js/function-call-argument-newline": 0,
"@stylistic/js/function-call-spacing": 0,
"@stylistic/js/function-paren-newline": 0,
"@stylistic/js/generator-star-spacing": 0,
"@stylistic/js/implicit-arrow-linebreak": 0,
"@stylistic/js/indent": 0,
"@stylistic/js/jsx-quotes": 0,
"@stylistic/js/key-spacing": 0,
"@stylistic/js/keyword-spacing": 0,
"@stylistic/js/line-comment-position": 0,
"@stylistic/js/linebreak-style": 0,
"@stylistic/js/lines-around-comment": 0,
"@stylistic/js/max-len": 0,
"@stylistic/js/max-statements-per-line": 0,
"@stylistic/js/multiline-ternary": 0,
"@stylistic/js/new-parens": 0,
"@stylistic/js/newline-per-chained-call": 0,
"@stylistic/js/no-confusing-arrow": 0,
"@stylistic/js/no-extra-parens": 0,
"@stylistic/js/no-extra-semi": 0,
"@stylistic/js/no-floating-decimal": 0,
"@stylistic/js/no-mixed-operators": 0,
"@stylistic/js/no-mixed-spaces-and-tabs": 0,
"@stylistic/js/no-multi-spaces": 0,
"@stylistic/js/no-multiple-empty-lines": 0,
"@stylistic/js/no-tabs": 0,
"@stylistic/js/no-trailing-spaces": 0,
"@stylistic/js/no-whitespace-before-property": 0,
"@stylistic/js/nonblock-statement-body-position": 0,
"@stylistic/js/object-curly-newline": 0,
"@stylistic/js/object-curly-spacing": 0,
"@stylistic/js/object-property-newline": 0,
"@stylistic/js/one-var-declaration-per-line": 0,
"@stylistic/js/operator-linebreak": 0,
"@stylistic/js/padded-blocks": 0,
"@stylistic/js/quote-props": 0,
"@stylistic/js/quotes": 0,
"@stylistic/js/rest-spread-spacing": 0,
"@stylistic/js/semi-spacing": 0,
"@stylistic/js/semi-style": 0,
"@stylistic/js/semi": 0,
"@stylistic/js/space-before-blocks": 0,
"@stylistic/js/space-before-function-paren": 0,
"@stylistic/js/space-in-parens": 0,
"@stylistic/js/space-infix-ops": 0,
"@stylistic/js/space-unary-ops": 0,
"@stylistic/js/switch-colon-spacing": 0,
"@stylistic/js/template-curly-spacing": 0,
"@stylistic/js/template-tag-spacing": 0,
"@stylistic/js/wrap-iife": 0,
"@stylistic/js/wrap-regex": 0,
"@stylistic/js/yield-star-spacing": 0,
"@stylistic/jsx-child-element-spacing": 0,
"@stylistic/jsx-closing-bracket-location": 0,
"@stylistic/jsx-closing-tag-location": 0,
"@stylistic/jsx-curly-newline": 0,
"@stylistic/jsx-curly-spacing": 0,
"@stylistic/jsx-equals-spacing": 0,
"@stylistic/jsx-first-prop-new-line": 0,
"@stylistic/jsx-indent-props": 0,
"@stylistic/jsx-indent": 0,
"@stylistic/jsx-max-props-per-line": 0,
"@stylistic/jsx-newline": 0,
"@stylistic/jsx-one-expression-per-line": 0,
"@stylistic/jsx-props-no-multi-spaces": 0,
"@stylistic/jsx-quotes": 0,
"@stylistic/jsx-tag-spacing": 0,
"@stylistic/jsx-wrap-multilines": 0,
"@stylistic/jsx/jsx-child-element-spacing": 0,
"@stylistic/jsx/jsx-closing-bracket-location": 0,
"@stylistic/jsx/jsx-closing-tag-location": 0,
"@stylistic/jsx/jsx-curly-newline": 0,
"@stylistic/jsx/jsx-curly-spacing": 0,
"@stylistic/jsx/jsx-equals-spacing": 0,
"@stylistic/jsx/jsx-first-prop-new-line": 0,
"@stylistic/jsx/jsx-indent-props": 0,
"@stylistic/jsx/jsx-indent": 0,
"@stylistic/jsx/jsx-max-props-per-line": 0,
"@stylistic/key-spacing": 0,
"@stylistic/keyword-spacing": 0,
"@stylistic/linebreak-style": 0,
"@stylistic/lines-around-comment": 0,
"@stylistic/max-len": 0,
"@stylistic/max-statements-per-line": 0,
"@stylistic/member-delimiter-style": 0,
"@stylistic/multiline-ternary": 0,
"@stylistic/new-parens": 0,
"@stylistic/newline-per-chained-call": 0,
"@stylistic/no-confusing-arrow": 0,
"@stylistic/no-extra-parens": 0,
"@stylistic/no-extra-semi": 0,
"@stylistic/no-floating-decimal": 0,
"@stylistic/no-mixed-operators": 0,
"@stylistic/no-mixed-spaces-and-tabs": 0,
"@stylistic/no-multi-spaces": 0,
"@stylistic/no-multiple-empty-lines": 0,
"@stylistic/no-tabs": 0,
"@stylistic/no-trailing-spaces": 0,
"@stylistic/no-whitespace-before-property": 0,
"@stylistic/nonblock-statement-body-position": 0,
"@stylistic/object-curly-newline": 0,
"@stylistic/object-curly-spacing": 0,
"@stylistic/object-property-newline": 0,
"@stylistic/one-var-declaration-per-line": 0,
"@stylistic/operator-linebreak": 0,
"@stylistic/padded-blocks": 0,
"@stylistic/quote-props": 0,
"@stylistic/quotes": 0,
"@stylistic/rest-spread-spacing": 0,
"@stylistic/semi-spacing": 0,
"@stylistic/semi-style": 0,
"@stylistic/semi": 0,
"@stylistic/space-before-blocks": 0,
"@stylistic/space-before-function-paren": 0,
"@stylistic/space-in-parens": 0,
"@stylistic/space-infix-ops": 0,
"@stylistic/space-unary-ops": 0,
"@stylistic/switch-colon-spacing": 0,
"@stylistic/template-curly-spacing": 0,
"@stylistic/template-tag-spacing": 0,
"@stylistic/ts/block-spacing": 0,
"@stylistic/ts/brace-style": 0,
"@stylistic/ts/comma-dangle": 0,
"@stylistic/ts/comma-spacing": 0,
"@stylistic/ts/func-call-spacing": 0,
"@stylistic/ts/function-call-spacing": 0,
"@stylistic/ts/indent": 0,
"@stylistic/ts/key-spacing": 0,
"@stylistic/ts/keyword-spacing": 0,
"@stylistic/ts/lines-around-comment": 0,
"@stylistic/ts/member-delimiter-style": 0,
"@stylistic/ts/no-extra-parens": 0,
"@stylistic/ts/no-extra-semi": 0,
"@stylistic/ts/object-curly-spacing": 0,
"@stylistic/ts/quotes": 0,
"@stylistic/ts/semi": 0,
"@stylistic/ts/space-before-blocks": 0,
"@stylistic/ts/space-before-function-paren": 0,
"@stylistic/ts/space-infix-ops": 0,
"@stylistic/ts/type-annotation-spacing": 0,
"@stylistic/type-annotation-spacing": 0,
"@stylistic/type-generic-spacing": 0,
"@stylistic/type-named-tuple-spacing": 0,
"@stylistic/wrap-iife": 0,
"@stylistic/wrap-regex": 0,
"@stylistic/yield-star-spacing": 0,
};
const config: TSESLint.FlatConfig.ConfigArray = [
{
rules,
},
];
export default config;