-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
build | ||
public/static | ||
node_modules | ||
*.yml | ||
*.yml | ||
sanity-dauci/dist/* | ||
sanity-dauci/node_modules/* | ||
sanity-dauci/.sanity/* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
{ | ||
"useTabs": true, | ||
"tabWidth": 4, | ||
"useTabs": true, | ||
"printWidth": 80, | ||
"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 commentThe 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? |
||
"importOrder": [ | ||
"^(react/(.*)$)|^(react$)", | ||
"^(next/(.*)$)|^(next$)", | ||
"<THIRD_PARTY_MODULES>", | ||
"", | ||
"^types$", | ||
"^~/types/(.*)$", | ||
"^~/config/(.*)$", | ||
"^~/lib/(.*)$", | ||
"^~/hooks/(.*)$", | ||
"^~/components/ui/(.*)$", | ||
"^~/components/(.*)$", | ||
"^~/styles/(.*)$", | ||
"^~/app/(.*)$", | ||
Comment on lines
+14
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
"", | ||
"^[./]" | ||
], | ||
"importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,10 @@ | |
|
||
<title>Design at UCI</title> | ||
|
||
<link href="https://fonts.googleapis.com/css2?family=Gluten:[email protected]&display=swap" rel="stylesheet"> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Gluten:[email protected]&display=swap" | ||
rel="stylesheet" | ||
/> | ||
|
||
<link | ||
rel="preload" | ||
|
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.