Skip to content

Commit 7e7c5b0

Browse files
bukinoshitadependabot[bot]gabrielmfern
committed
chore(all): use biome (#1833)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: gabriel miranda <[email protected]>
1 parent 9827965 commit 7e7c5b0

File tree

459 files changed

+7538
-8040
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

459 files changed

+7538
-8040
lines changed

.changeset/config.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
33
"changelog": "@changesets/cli/changelog",
44
"commit": false,
5-
"fixed": [
6-
["react-email-starter", "create-email"]
7-
],
5+
"fixed": [["react-email-starter", "create-email"]],
86
"linked": [],
97
"access": "public",
108
"baseBranch": "main",

.github/workflows/tests.yml

+6-36
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,7 @@ on:
55
- main
66
pull_request:
77
jobs:
8-
format:
9-
runs-on: buildjet-4vcpu-ubuntu-2204
10-
container:
11-
image: node:18
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v4
15-
16-
- name: Enable Corepack
17-
id: pnpm-setup
18-
run: |
19-
corepack enable
20-
corepack prepare pnpm@latest --activate
21-
pnpm config set script-shell "/usr/bin/bash"
22-
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
23-
24-
- name: pnpm Cache
25-
uses: buildjet/cache@v4
26-
with:
27-
path: ${{ steps.pnpm-setup.outputs.pnpm_cache_dir }}
28-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
29-
restore-keys: |
30-
${{ runner.os }}-pnpm-store-
31-
32-
- name: Install packages
33-
run: pnpm install --frozen-lockfile
34-
35-
- name: Run Format Check
36-
run: pnpm format:check
37-
38-
test:
8+
lint:
399
runs-on: buildjet-4vcpu-ubuntu-2204
4010
container:
4111
image: node:18
@@ -65,10 +35,10 @@ jobs:
6535
- name: Run Build
6636
run: pnpm build
6737

68-
- name: Run Tests
69-
run: pnpm test
38+
- name: Run Lint
39+
run: pnpm lint
7040

71-
lint:
41+
test:
7242
runs-on: buildjet-4vcpu-ubuntu-2204
7343
container:
7444
image: node:18
@@ -98,8 +68,8 @@ jobs:
9868
- name: Run Build
9969
run: pnpm build
10070

101-
- name: Run Lint
102-
run: pnpm lint
71+
- name: Run Tests
72+
run: pnpm test
10373

10474
build:
10575
runs-on: buildjet-4vcpu-ubuntu-2204

.prettierignore

-1
This file was deleted.

.prettierrc

-1
This file was deleted.

apps/demo/emails/magic-links/aws-verify-email.tsx

+44-44
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ import {
1010
Preview,
1111
Section,
1212
Text,
13-
} from "@react-email/components";
14-
import * as React from "react";
13+
} from '@react-email/components';
14+
import * as React from 'react';
1515

1616
interface AWSVerifyEmailProps {
1717
verificationCode?: string;
1818
}
1919

2020
const baseUrl = process.env.VERCEL_URL
2121
? `https://${process.env.VERCEL_URL}`
22-
: "";
22+
: '';
2323

2424
export default function AWSVerifyEmail({
25-
verificationCode = "596853",
25+
verificationCode = '596853',
2626
}: AWSVerifyEmailProps) {
2727
return (
2828
<Html>
@@ -68,11 +68,11 @@ export default function AWSVerifyEmail({
6868
This message was produced and distributed by Amazon Web Services,
6969
Inc., 410 Terry Ave. North, Seattle, WA 98109. © 2022, Amazon Web
7070
Services, Inc.. All rights reserved. AWS is a registered trademark
71-
of{" "}
71+
of{' '}
7272
<Link href="https://amazon.com" target="_blank" style={link}>
7373
Amazon.com
7474
</Link>
75-
, Inc. View our{" "}
75+
, Inc. View our{' '}
7676
<Link href="https://amazon.com" target="_blank" style={link}>
7777
privacy policy
7878
</Link>
@@ -85,88 +85,88 @@ export default function AWSVerifyEmail({
8585
}
8686

8787
const main = {
88-
backgroundColor: "#fff",
89-
color: "#212121",
88+
backgroundColor: '#fff',
89+
color: '#212121',
9090
};
9191

9292
const container = {
93-
padding: "20px",
94-
margin: "0 auto",
95-
backgroundColor: "#eee",
93+
padding: '20px',
94+
margin: '0 auto',
95+
backgroundColor: '#eee',
9696
};
9797

9898
const h1 = {
99-
color: "#333",
99+
color: '#333',
100100
fontFamily:
101101
"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
102-
fontSize: "20px",
103-
fontWeight: "bold",
104-
marginBottom: "15px",
102+
fontSize: '20px',
103+
fontWeight: 'bold',
104+
marginBottom: '15px',
105105
};
106106

107107
const link = {
108-
color: "#2754C5",
108+
color: '#2754C5',
109109
fontFamily:
110110
"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
111-
fontSize: "14px",
112-
textDecoration: "underline",
111+
fontSize: '14px',
112+
textDecoration: 'underline',
113113
};
114114

115115
const text = {
116-
color: "#333",
116+
color: '#333',
117117
fontFamily:
118118
"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
119-
fontSize: "14px",
120-
margin: "24px 0",
119+
fontSize: '14px',
120+
margin: '24px 0',
121121
};
122122

123123
const imageSection = {
124-
backgroundColor: "#252f3d",
125-
display: "flex",
126-
padding: "20px 0",
127-
alignItems: "center",
128-
justifyContent: "center",
124+
backgroundColor: '#252f3d',
125+
display: 'flex',
126+
padding: '20px 0',
127+
alignItems: 'center',
128+
justifyContent: 'center',
129129
};
130130

131-
const coverSection = { backgroundColor: "#fff" };
131+
const coverSection = { backgroundColor: '#fff' };
132132

133-
const upperSection = { padding: "25px 35px" };
133+
const upperSection = { padding: '25px 35px' };
134134

135-
const lowerSection = { padding: "25px 35px" };
135+
const lowerSection = { padding: '25px 35px' };
136136

137137
const footerText = {
138138
...text,
139-
fontSize: "12px",
140-
padding: "0 20px",
139+
fontSize: '12px',
140+
padding: '0 20px',
141141
};
142142

143143
const verifyText = {
144144
...text,
145145
margin: 0,
146-
fontWeight: "bold",
147-
textAlign: "center" as const,
146+
fontWeight: 'bold',
147+
textAlign: 'center' as const,
148148
};
149149

150150
const codeText = {
151151
...text,
152-
fontWeight: "bold",
153-
fontSize: "36px",
154-
margin: "10px 0",
155-
textAlign: "center" as const,
152+
fontWeight: 'bold',
153+
fontSize: '36px',
154+
margin: '10px 0',
155+
textAlign: 'center' as const,
156156
};
157157

158158
const validityText = {
159159
...text,
160-
margin: "0px",
161-
textAlign: "center" as const,
160+
margin: '0px',
161+
textAlign: 'center' as const,
162162
};
163163

164164
const verificationSection = {
165-
display: "flex",
166-
alignItems: "center",
167-
justifyContent: "center",
165+
display: 'flex',
166+
alignItems: 'center',
167+
justifyContent: 'center',
168168
};
169169

170-
const mainText = { ...text, marginBottom: "14px" };
170+
const mainText = { ...text, marginBottom: '14px' };
171171

172-
const cautionText = { ...text, margin: "0px" };
172+
const cautionText = { ...text, margin: '0px' };

apps/demo/emails/magic-links/linear-login-code.tsx

+40-40
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ import {
1111
Preview,
1212
Section,
1313
Text,
14-
} from "@react-email/components";
15-
import * as React from "react";
14+
} from '@react-email/components';
15+
import * as React from 'react';
1616

1717
interface LinearLoginCodeEmailProps {
1818
validationCode?: string;
1919
}
2020

2121
const baseUrl = process.env.VERCEL_URL
2222
? `https://${process.env.VERCEL_URL}`
23-
: "";
23+
: '';
2424

2525
export const LinearLoginCodeEmail = ({
2626
validationCode,
@@ -58,7 +58,7 @@ export const LinearLoginCodeEmail = ({
5858
);
5959

6060
LinearLoginCodeEmail.PreviewProps = {
61-
validationCode: "tt226-5398x",
61+
validationCode: 'tt226-5398x',
6262
} as LinearLoginCodeEmailProps;
6363

6464
export default LinearLoginCodeEmail;
@@ -70,66 +70,66 @@ const logo = {
7070
};
7171

7272
const main = {
73-
backgroundColor: "#ffffff",
73+
backgroundColor: '#ffffff',
7474
fontFamily:
7575
'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',
7676
};
7777

7878
const container = {
79-
margin: "0 auto",
80-
padding: "20px 0 48px",
81-
maxWidth: "560px",
79+
margin: '0 auto',
80+
padding: '20px 0 48px',
81+
maxWidth: '560px',
8282
};
8383

8484
const heading = {
85-
fontSize: "24px",
86-
letterSpacing: "-0.5px",
87-
lineHeight: "1.3",
88-
fontWeight: "400",
89-
color: "#484848",
90-
padding: "17px 0 0",
85+
fontSize: '24px',
86+
letterSpacing: '-0.5px',
87+
lineHeight: '1.3',
88+
fontWeight: '400',
89+
color: '#484848',
90+
padding: '17px 0 0',
9191
};
9292

9393
const paragraph = {
94-
margin: "0 0 15px",
95-
fontSize: "15px",
96-
lineHeight: "1.4",
97-
color: "#3c4149",
94+
margin: '0 0 15px',
95+
fontSize: '15px',
96+
lineHeight: '1.4',
97+
color: '#3c4149',
9898
};
9999

100100
const buttonContainer = {
101-
padding: "27px 0 27px",
101+
padding: '27px 0 27px',
102102
};
103103

104104
const button = {
105-
backgroundColor: "#5e6ad2",
106-
borderRadius: "3px",
107-
fontWeight: "600",
108-
color: "#fff",
109-
fontSize: "15px",
110-
textDecoration: "none",
111-
textAlign: "center" as const,
112-
display: "block",
113-
padding: "11px 23px",
105+
backgroundColor: '#5e6ad2',
106+
borderRadius: '3px',
107+
fontWeight: '600',
108+
color: '#fff',
109+
fontSize: '15px',
110+
textDecoration: 'none',
111+
textAlign: 'center' as const,
112+
display: 'block',
113+
padding: '11px 23px',
114114
};
115115

116116
const reportLink = {
117-
fontSize: "14px",
118-
color: "#b4becc",
117+
fontSize: '14px',
118+
color: '#b4becc',
119119
};
120120

121121
const hr = {
122-
borderColor: "#dfe1e4",
123-
margin: "42px 0 26px",
122+
borderColor: '#dfe1e4',
123+
margin: '42px 0 26px',
124124
};
125125

126126
const code = {
127-
fontFamily: "monospace",
128-
fontWeight: "700",
129-
padding: "1px 4px",
130-
backgroundColor: "#dfe1e4",
131-
letterSpacing: "-0.3px",
132-
fontSize: "21px",
133-
borderRadius: "4px",
134-
color: "#3c4149",
127+
fontFamily: 'monospace',
128+
fontWeight: '700',
129+
padding: '1px 4px',
130+
backgroundColor: '#dfe1e4',
131+
letterSpacing: '-0.3px',
132+
fontSize: '21px',
133+
borderRadius: '4px',
134+
color: '#3c4149',
135135
};

0 commit comments

Comments
 (0)