mirror of
https://github.com/resend/react-email.git
synced 2026-09-14 14:18:02 +08:00
551412c8a2
Co-authored-by: Chris Pennington <cpenn368@gmail.com> Co-authored-by: cpenned <66193019+cpenned@users.noreply.github.com>
24 lines
806 B
Plaintext
24 lines
806 B
Plaintext
---
|
|
title: 'Linting'
|
|
sidebarTitle: '3. Linting'
|
|
'og:image': 'https://react.email/static/covers/react-email.png'
|
|
description: 'Everything you need to know about linting and formatting'
|
|
---
|
|
|
|
We use [biomejs](https://biomejs.dev/) for linting and formatting. Both linting and formatting are ensured by our GitHub CI, so before opening a PR or asking for a review, please lint and format your code.
|
|
|
|
## Check for linting issues
|
|
To check if there are any linting issues, run `pnpm lint` on the root of the workspace.
|
|
|
|
```bash
|
|
pnpm lint
|
|
```
|
|
|
|
To lint or format the entire project, run `pnpm lint:fix` on the root of the workspace.
|
|
|
|
```bash
|
|
pnpm lint:fix
|
|
```
|
|
|
|
Both the linting and formatting are ensured by our GitHub CI so make sure you lint and format your code before opening a PR or asking for a review on it.
|