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

chore: update prettier config, run format #130

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

KevinWu098
Copy link
Member

@KevinWu098 KevinWu098 commented Jul 28, 2024

Summary

  1. First attempt at updating the prettier config erroneously set useTabs to false in the prettier config, resulting in virtually every line getting formatted
  2. That commit (and a subsequent correction commit) have been rebase dropped and force-pushed out of the git tree, so as to preserve the previous git blame and contributions of other developers
  3. This PR aims to update the prettier config, this time with useTabs set to true

"tabWidth": 4,
"useTabs": true,
"printWidth": 80,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: I think many previous lines were formatted at print width around 88 which does help prevent some overly compact lines.

"semi": true,
"singleQuote": false,
"printWidth": 80
"plugins": ["@ianvs/prettier-plugin-sort-imports"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: is there a particular reason you chose a plugin for Prettier rather than something like eslint-plugin-import which is included in eslint-config-react-app?

Comment on lines +14 to +21
"^~/types/(.*)$",
"^~/config/(.*)$",
"^~/lib/(.*)$",
"^~/hooks/(.*)$",
"^~/components/ui/(.*)$",
"^~/components/(.*)$",
"^~/styles/(.*)$",
"^~/app/(.*)$",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: I don't think these particular imports fit the folder structure of our site.

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