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

Prettier using double quotes #25

Merged
merged 2 commits into from
Aug 25, 2024
Merged

Prettier using double quotes #25

merged 2 commits into from
Aug 25, 2024

Conversation

tannaurus
Copy link
Collaborator

@tannaurus tannaurus commented Aug 25, 2024

Description

Prettier has two rules for quotes:

  • singleQuote: Use single quotes instead of double quotes.
  • singleQuoteJsx: Use single quotes instead of double quotes in JSX.

We only had the former enabled, leading to inconsistency across the codebase that I noticed in PR #22 and #23.

Prettier themselves is on team double quotes, which is explained in their "rationale" documentation.

Changes

  • In the first commit, I removed the singleQuote rule from our prettier config
  • In the second commit, I ran prettier across our codebase with npx prettier . --write

Copy link

Visit the preview URL for this PR (updated for commit cc3c00e):

https://tcl-77-smart-shopping-list--pr25-tg-quote-me-on-this-i0krxnab.web.app

(expires Sun, 01 Sep 2024 15:33:17 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: b77df24030dca7d8b6561cb24957d2273c5e9d72

@tannaurus tannaurus mentioned this pull request Aug 25, 2024
7 tasks
@adidalal adidalal merged commit df11ec1 into main Aug 25, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants