Skip to content

Commit 4cecc95

Browse files
authored
build: fix eslint code snippet linting (#85)
* style: exclude ts/js snippets in mdx from eslint and fix remaining issues * build: move eslint for code snippets into their own configs and fix many errors --------- Co-authored-by: dslovinsky <[email protected]>
1 parent 6846e51 commit 4cecc95

File tree

22 files changed

+3744
-1701
lines changed

22 files changed

+3744
-1701
lines changed

custom-app/src/assets/ChangelogIcon.tsx

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FC } from 'react'
1+
import type { FC } from 'react'
22

33
const ChangelogIcon: FC = () => {
44
return (
@@ -7,15 +7,19 @@ const ChangelogIcon: FC = () => {
77
height="22"
88
viewBox="0 0 24 22"
99
fill="none"
10-
xmlns="http://www.w3.org/2000/svg">
10+
xmlns="http://www.w3.org/2000/svg"
11+
>
1112
<foreignObject x="-7.19998" y="-7.9999" width="38.4" height="37.9998">
1213
<div
13-
style={{
14-
backdropFilter: 'blur(4.8px)',
15-
clipPath: 'url(#bgblur_0_9452_35056_clip_path)',
16-
height: '100%',
17-
width: '100%'
18-
} as React.CSSProperties}></div>
14+
style={
15+
{
16+
backdropFilter: 'blur(4.8px)',
17+
clipPath: 'url(#bgblur_0_9452_35056_clip_path)',
18+
height: '100%',
19+
width: '100%',
20+
} as React.CSSProperties
21+
}
22+
></div>
1923
</foreignObject>
2024
<g filter="url(#filter0_i_9452_35056)" data-figma-bg-blur-radius="9.6">
2125
<path
@@ -36,11 +40,14 @@ const ChangelogIcon: FC = () => {
3640
</g>
3741
<foreignObject x="-8.79995" y="-9.6" width="41.6" height="41.2">
3842
<div
39-
style={{
40-
backdropFilter: 'blur(4.8px)',
41-
height: '100%',
42-
width: '100%'
43-
} as React.CSSProperties}></div>
43+
style={
44+
{
45+
backdropFilter: 'blur(4.8px)',
46+
height: '100%',
47+
width: '100%',
48+
} as React.CSSProperties
49+
}
50+
></div>
4451
</foreignObject>
4552
<g filter="url(#filter1_i_9452_35056)" data-figma-bg-blur-radius="9.6">
4653
<path
@@ -65,7 +72,8 @@ const ChangelogIcon: FC = () => {
6572
width="38.4"
6673
height="37.9998"
6774
filterUnits="userSpaceOnUse"
68-
color-interpolation-filters="sRGB">
75+
color-interpolation-filters="sRGB"
76+
>
6977
<feFlood flood-opacity="0" result="BackgroundImageFix" />
7078
<feBlend
7179
mode="normal"
@@ -105,7 +113,8 @@ const ChangelogIcon: FC = () => {
105113
width="41.6"
106114
height="41.2"
107115
filterUnits="userSpaceOnUse"
108-
color-interpolation-filters="sRGB">
116+
color-interpolation-filters="sRGB"
117+
>
109118
<feFlood flood-opacity="0" result="BackgroundImageFix" />
110119
<feBlend
111120
mode="normal"
@@ -139,7 +148,8 @@ const ChangelogIcon: FC = () => {
139148
width="20.8"
140149
height="21.9999"
141150
filterUnits="userSpaceOnUse"
142-
color-interpolation-filters="sRGB">
151+
color-interpolation-filters="sRGB"
152+
>
143153
<feFlood flood-opacity="0" result="BackgroundImageFix" />
144154
<feColorMatrix
145155
in="SourceAlpha"
@@ -189,7 +199,8 @@ const ChangelogIcon: FC = () => {
189199
y1="5.3601"
190200
x2="24.1126"
191201
y2="8.32642"
192-
gradientUnits="userSpaceOnUse">
202+
gradientUnits="userSpaceOnUse"
203+
>
193204
<stop stop-color="#5498FF" />
194205
<stop offset="1" stop-color="#8940FF" />
195206
</linearGradient>
@@ -199,7 +210,8 @@ const ChangelogIcon: FC = () => {
199210
y1="-7.47484"
200211
x2="32.4731"
201212
y2="21.9702"
202-
gradientUnits="userSpaceOnUse">
213+
gradientUnits="userSpaceOnUse"
214+
>
203215
<stop offset="0.24238" stop-color="#5498FF" />
204216
<stop offset="1" stop-color="#A131F9" stop-opacity="0" />
205217
</linearGradient>
@@ -209,7 +221,8 @@ const ChangelogIcon: FC = () => {
209221
y1="-10.6196"
210222
x2="35.9117"
211223
y2="23.834"
212-
gradientUnits="userSpaceOnUse">
224+
gradientUnits="userSpaceOnUse"
225+
>
213226
<stop offset="0.24238" stop-color="#5498FF" />
214227
<stop offset="1" stop-color="#A131F9" stop-opacity="0" />
215228
</linearGradient>

custom-app/src/assets/CommunityIcon.tsx

Lines changed: 57 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FC } from 'react'
1+
import type { FC } from 'react'
22

33
const CommunityIcon: FC = () => {
44
return (
@@ -7,15 +7,19 @@ const CommunityIcon: FC = () => {
77
height="24"
88
viewBox="0 0 24 24"
99
fill="none"
10-
xmlns="http://www.w3.org/2000/svg">
10+
xmlns="http://www.w3.org/2000/svg"
11+
>
1112
<foreignObject x="-3.73842" y="-0.47145" width="21.6779" height="20.2168">
1213
<div
13-
style={{
14-
backdropFilter: 'blur(3.68px)',
15-
clipPath: 'url(#bgblur_0_9452_35062_clip_path)',
16-
height: '100%',
17-
width: '100%'
18-
} as React.CSSProperties}></div>
14+
style={
15+
{
16+
backdropFilter: 'blur(3.68px)',
17+
clipPath: 'url(#bgblur_0_9452_35062_clip_path)',
18+
height: '100%',
19+
width: '100%',
20+
} as React.CSSProperties
21+
}
22+
></div>
1923
</foreignObject>
2024
<g filter="url(#filter0_i_9452_35062)" data-figma-bg-blur-radius="7.3694">
2125
<path
@@ -25,12 +29,15 @@ const CommunityIcon: FC = () => {
2529
</g>
2630
<foreignObject x="4.29637" y="5.73753" width="20.2171" height="22.043">
2731
<div
28-
style={{
29-
backdropFilter: 'blur(3.68px)',
30-
clipPath: 'url(#bgblur_1_9452_35062_clip_path)',
31-
height: '100%',
32-
width: '100%'
33-
} as React.CSSProperties}></div>
32+
style={
33+
{
34+
backdropFilter: 'blur(3.68px)',
35+
clipPath: 'url(#bgblur_1_9452_35062_clip_path)',
36+
height: '100%',
37+
width: '100%',
38+
} as React.CSSProperties
39+
}
40+
></div>
3441
</foreignObject>
3542
<g filter="url(#filter1_i_9452_35062)" data-figma-bg-blur-radius="7.3694">
3643
<path
@@ -40,12 +47,15 @@ const CommunityIcon: FC = () => {
4047
</g>
4148
<foreignObject x="0.135118" y="-3.69459" width="27.6078" height="27.6016">
4249
<div
43-
style={{
44-
backdropFilter: 'blur(3.68px)',
45-
clipPath: 'url(#bgblur_2_9452_35062_clip_path)',
46-
height: '100%',
47-
width: '100%'
48-
} as React.CSSProperties}></div>
50+
style={
51+
{
52+
backdropFilter: 'blur(3.68px)',
53+
clipPath: 'url(#bgblur_2_9452_35062_clip_path)',
54+
height: '100%',
55+
width: '100%',
56+
} as React.CSSProperties
57+
}
58+
></div>
4959
</foreignObject>
5060
<g filter="url(#filter2_i_9452_35062)" data-figma-bg-blur-radius="7.3694">
5161
<path
@@ -73,12 +83,15 @@ const CommunityIcon: FC = () => {
7383
</g>
7484
<foreignObject x="-1.97499" y="6.468" width="19.4973" height="19.4326">
7585
<div
76-
style={{
77-
backdropFilter: 'blur(3.68px)',
78-
clipPath: 'url(#bgblur_3_9452_35062_clip_path)',
79-
height: '100%',
80-
width: '100%'
81-
} as React.CSSProperties}></div>
86+
style={
87+
{
88+
backdropFilter: 'blur(3.68px)',
89+
clipPath: 'url(#bgblur_3_9452_35062_clip_path)',
90+
height: '100%',
91+
width: '100%',
92+
} as React.CSSProperties
93+
}
94+
></div>
8295
</foreignObject>
8396
<g filter="url(#filter3_i_9452_35062)" data-figma-bg-blur-radius="7.3694">
8497
<path
@@ -103,7 +116,8 @@ const CommunityIcon: FC = () => {
103116
width="21.6779"
104117
height="20.2168"
105118
filterUnits="userSpaceOnUse"
106-
color-interpolation-filters="sRGB">
119+
color-interpolation-filters="sRGB"
120+
>
107121
<feFlood flood-opacity="0" result="BackgroundImageFix" />
108122
<feBlend
109123
mode="normal"
@@ -143,7 +157,8 @@ const CommunityIcon: FC = () => {
143157
width="20.2171"
144158
height="22.043"
145159
filterUnits="userSpaceOnUse"
146-
color-interpolation-filters="sRGB">
160+
color-interpolation-filters="sRGB"
161+
>
147162
<feFlood flood-opacity="0" result="BackgroundImageFix" />
148163
<feBlend
149164
mode="normal"
@@ -183,7 +198,8 @@ const CommunityIcon: FC = () => {
183198
width="27.6078"
184199
height="27.6016"
185200
filterUnits="userSpaceOnUse"
186-
color-interpolation-filters="sRGB">
201+
color-interpolation-filters="sRGB"
202+
>
187203
<feFlood flood-opacity="0" result="BackgroundImageFix" />
188204
<feBlend
189205
mode="normal"
@@ -223,7 +239,8 @@ const CommunityIcon: FC = () => {
223239
width="19.4973"
224240
height="19.4326"
225241
filterUnits="userSpaceOnUse"
226-
color-interpolation-filters="sRGB">
242+
color-interpolation-filters="sRGB"
243+
>
227244
<feFlood flood-opacity="0" result="BackgroundImageFix" />
228245
<feBlend
229246
mode="normal"
@@ -264,7 +281,8 @@ const CommunityIcon: FC = () => {
264281
y1="6.89795"
265282
x2="11.3898"
266283
y2="12.6203"
267-
gradientUnits="userSpaceOnUse">
284+
gradientUnits="userSpaceOnUse"
285+
>
268286
<stop offset="0.24238" stop-color="#5498FF" />
269287
<stop offset="1" stop-color="#A131F9" />
270288
</linearGradient>
@@ -274,7 +292,8 @@ const CommunityIcon: FC = () => {
274292
y1="13.1069"
275293
x2="19.6084"
276294
y2="16.5754"
277-
gradientUnits="userSpaceOnUse">
295+
gradientUnits="userSpaceOnUse"
296+
>
278297
<stop offset="0.24238" stop-color="#5498FF" />
279298
<stop offset="1" stop-color="#A131F9" />
280299
</linearGradient>
@@ -284,7 +303,8 @@ const CommunityIcon: FC = () => {
284303
y1="6.24736"
285304
x2="22.0688"
286305
y2="8.19666"
287-
gradientUnits="userSpaceOnUse">
306+
gradientUnits="userSpaceOnUse"
307+
>
288308
<stop stop-color="#5498FF" />
289309
<stop offset="1" stop-color="#8940FF" />
290310
</linearGradient>
@@ -294,7 +314,8 @@ const CommunityIcon: FC = () => {
294314
y1="6.24736"
295315
x2="22.0688"
296316
y2="8.19666"
297-
gradientUnits="userSpaceOnUse">
317+
gradientUnits="userSpaceOnUse"
318+
>
298319
<stop stop-color="#5498FF" />
299320
<stop offset="1" stop-color="#8940FF" />
300321
</linearGradient>
@@ -304,7 +325,8 @@ const CommunityIcon: FC = () => {
304325
y1="13.7305"
305326
x2="6.94018"
306327
y2="20.4553"
307-
gradientUnits="userSpaceOnUse">
328+
gradientUnits="userSpaceOnUse"
329+
>
308330
<stop offset="0.24238" stop-color="#5498FF" />
309331
<stop offset="1" stop-color="#A131F9" />
310332
</linearGradient>

custom-app/src/assets/LogoDark.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FC } from 'react'
1+
import type { FC } from 'react'
22

33
export const LogoDark: FC = () => {
44
return (
@@ -7,7 +7,8 @@ export const LogoDark: FC = () => {
77
width="113"
88
height="24"
99
viewBox="0 0 113 24"
10-
fill="none">
10+
fill="none"
11+
>
1112
<path
1213
d="M35.3051 12.7698V12.4885C35.3051 11.7817 35.0634 11.2407 34.58 10.8656C34.1113 10.4761 33.4961 10.2814 32.7344 10.2814C32.1485 10.2814 31.6871 10.3824 31.3502 10.5843C31.0279 10.7719 30.7203 11.0604 30.4274 11.4499C30.3395 11.5653 30.2443 11.6446 30.1417 11.6879C30.0392 11.7312 29.9001 11.7528 29.7243 11.7528H29.0651C28.904 11.7528 28.7575 11.6951 28.6257 11.5797C28.5085 11.4643 28.4572 11.3273 28.4719 11.1686C28.5158 10.7358 28.7282 10.3103 29.1091 9.89192C29.5046 9.45915 30.0246 9.10573 30.6691 8.83164C31.3136 8.55756 32.002 8.42052 32.7344 8.42052C34.0967 8.42052 35.1952 8.79558 36.0302 9.54571C36.8797 10.2958 37.3045 11.3489 37.3045 12.7049V19.3045C37.3045 19.4632 37.2459 19.6003 37.1288 19.7157C37.0116 19.8311 36.8724 19.8888 36.7113 19.8888H35.8983C35.7372 19.8888 35.5981 19.8311 35.4809 19.7157C35.3637 19.6003 35.3051 19.4632 35.3051 19.3045V18.4174C35.0707 18.9367 34.5727 19.3478 33.811 19.6508C33.0493 19.9537 32.2877 20.1052 31.526 20.1052C30.7789 20.1052 30.1124 19.9753 29.5265 19.7157C28.9406 19.4416 28.4865 19.0737 28.1643 18.6121C27.8567 18.1505 27.7029 17.6312 27.7029 17.0542C27.7029 15.9723 28.113 15.1284 28.9333 14.5225C29.7536 13.9022 30.8448 13.4839 32.2071 13.2675L35.3051 12.7698ZM35.3051 14.5009L32.7124 14.912C31.7603 15.0562 31.0206 15.2943 30.4933 15.626C29.966 15.9434 29.7023 16.3473 29.7023 16.8378C29.7023 17.1984 29.8708 17.523 30.2077 17.8115C30.5446 18.1 31.0572 18.2443 31.7457 18.2443C32.8003 18.2443 33.6572 17.9486 34.3164 17.3571C34.9755 16.7657 35.3051 15.9939 35.3051 15.0418V14.5009Z"
1314
fill="#E2E8F0"

custom-app/src/assets/LogoLight.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FC } from 'react'
1+
import type { FC } from 'react'
22

33
export const LogoLight: FC = () => {
44
return (
@@ -7,7 +7,8 @@ export const LogoLight: FC = () => {
77
width="113"
88
height="24"
99
viewBox="0 0 113 24"
10-
fill="none">
10+
fill="none"
11+
>
1112
<path
1213
d="M35.3052 12.7696V12.4883C35.3052 11.7814 35.0635 11.2405 34.5801 10.8654C34.1114 10.4759 33.4962 10.2812 32.7345 10.2812C32.1486 10.2812 31.6872 10.3821 31.3503 10.5841C31.028 10.7716 30.7204 11.0601 30.4274 11.4496C30.3396 11.565 30.2443 11.6444 30.1418 11.6876C30.0393 11.7309 29.9001 11.7526 29.7243 11.7526H29.0652C28.9041 11.7526 28.7576 11.6949 28.6258 11.5795C28.5086 11.4641 28.4573 11.327 28.472 11.1683C28.5159 10.7356 28.7283 10.31 29.1091 9.89167C29.5046 9.45891 30.0246 9.10548 30.6691 8.8314C31.3136 8.55731 32.0021 8.42027 32.7345 8.42027C34.0967 8.42027 35.1953 8.79534 36.0302 9.54546C36.8798 10.2956 37.3046 11.3486 37.3046 12.7046V19.3043C37.3046 19.463 37.246 19.6 37.1288 19.7154C37.0116 19.8308 36.8725 19.8885 36.7114 19.8885H35.8984C35.7373 19.8885 35.5981 19.8308 35.4809 19.7154C35.3638 19.6 35.3052 19.463 35.3052 19.3043V18.4171C35.0708 18.9365 34.5728 19.3476 33.8111 19.6505C33.0494 19.9535 32.2877 20.1049 31.526 20.1049C30.779 20.1049 30.1125 19.9751 29.5266 19.7154C28.9407 19.4413 28.4866 19.0735 28.1643 18.6119C27.8567 18.1503 27.7029 17.6309 27.7029 17.0539C27.7029 15.972 28.1131 15.1281 28.9334 14.5223C29.7536 13.902 30.8449 13.4836 32.2071 13.2672L35.3052 12.7696ZM35.3052 14.5006L32.7125 14.9117C31.7604 15.056 31.0207 15.294 30.4934 15.6258C29.966 15.9432 29.7024 16.3471 29.7024 16.8375C29.7024 17.1982 29.8708 17.5228 30.2077 17.8113C30.5446 18.0998 31.0573 18.244 31.7457 18.244C32.8004 18.244 33.6573 17.9483 34.3164 17.3569C34.9756 16.7654 35.3052 15.9937 35.3052 15.0416V14.5006Z"
1314
fill="#475569"

0 commit comments

Comments
 (0)