-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
"tabWidth": 4, | ||
"useTabs": true, | ||
"printWidth": 80, |
There was a problem hiding this comment.
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"], |
There was a problem hiding this comment.
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?
"^~/types/(.*)$", | ||
"^~/config/(.*)$", | ||
"^~/lib/(.*)$", | ||
"^~/hooks/(.*)$", | ||
"^~/components/ui/(.*)$", | ||
"^~/components/(.*)$", | ||
"^~/styles/(.*)$", | ||
"^~/app/(.*)$", |
There was a problem hiding this comment.
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.
Summary
useTabs
to false in the prettier config, resulting in virtually every line getting formatteduseTabs
set to true