docs: Improve the Tailwind CSS page (#31681)

Namely, ensuring we mention the support for their Prettier plugins.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal
2025-05-29 08:15:59 -03:00
committed by GitHub
parent cb187b0b4d
commit e3354543c0
6 changed files with 20 additions and 9 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ JavaScript support is available natively in Zed.
## Code formatting
Formatting on save is enabled by default for JavaScript, using TypeScript's built-in code formatting. But many JavaScript projects use other command-line code-formatting tools, such as [Prettier](https://prettier.io/). You can use one of these tools by specifying an _external_ code formatter for JavaScript in your settings. See the [configuration](../configuring-zed.md) documentation for more information.
Formatting on save is enabled by default for JavaScript, using TypeScript's built-in code formatting. But many JavaScript projects use other command-line code-formatting tools, such as [Prettier](https://prettier.io/). You can use one of these tools by specifying an _external_ code formatter for JavaScript in your settings. See [the configuration docs](../configuring-zed.md) for more information.
For example, if you have Prettier installed and on your `PATH`, you can use it to format JavaScript files by adding the following to your `settings.json`:
@@ -77,7 +77,7 @@ You can also only execute a single ESLint rule when using `fixAll`:
```
> **Note:** the other formatter you have configured will still run, after ESLint.
> So if your language server or prettier configuration don't format according to
> So if your language server or Prettier configuration don't format according to
> ESLint's rules, then they will overwrite what ESLint fixed and you end up with
> errors.