Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some formatter #4

Open
FireIsGood opened this issue Apr 30, 2024 · 0 comments
Open

Add some formatter #4

FireIsGood opened this issue Apr 30, 2024 · 0 comments

Comments

@FireIsGood
Copy link
Contributor

Editing the project a bit, I noticed that there were a few inconsistencies that I had to fight with to not have a million changes when doing basic edits. (e.g. 12 random spaces, markdown slightly off specification format).

To fix this, I propose adding some sort of formatter to the project like Prettier which is already included in the Visual Studio Code plugin for Astro.

This could be as simple as running

npm install --save-dev prettier prettier-plugin-astro

Additionally, you might add some basic rules for which quotes to prioritize and line width and a .prettierignore file to stop the tsconfig.json file from exploding every time you run prettier . -w.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant