withastro / language-tools

Language tools for Astro
MIT License
267 stars 52 forks source link

Fixes `.prettierignore` and `.editorconfig` not working #832

Closed Princesseuh closed 6 months ago

Princesseuh commented 6 months ago

Changes

Fixes .prettierignore and .editorconfig not being respected. Mainly a dep upgrade + tests. This PR also adds an error message when failing to load the Prettier config, as a lot of people don't configure it correctly and end up complaining about formatting not working (often because they're using a CJS config in a ESM project, which Prettier does not support)

Testing

Added a test for ignoring formatting and using editorConfig

Docs

N/A

changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: e5c3ad0aa59e61d0de2315086024cca663535f86

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ------------------------ | ----- | | @astrojs/language-server | Patch | | astro-vscode | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR