Skip to content

Commit 6768daa

Browse files
authored
LLSC frontend setup -- added prettier (#25)
## Notion ticket link <!-- Please replace with your ticket's URL --> [LLSC-30](https://www.notion.so/uwblueprintexecs/Task-Board-db95cd7b93f245f78ee85e3a8a6a316d) <!-- Give a quick summary of the implementation details, provide design justifications if necessary --> ## Implementation description * <!-- What should the reviewer do to verify your changes? Describe expected results and include screenshots when appropriate --> ## Steps to test 1. <!-- Draw attention to the substantial parts of your PR or anything you'd like a second opinion on --> ## What should reviewers focus on? * ## Checklist - [ ] My PR name is descriptive and in imperative tense - [ ] My commit messages are descriptive and in imperative tense. My commits are atomic and trivial commits are squashed or fixup'd into non-trivial commits - [ ] I have run the appropriate linter(s) - [ ] I have requested a review from the PL, as well as other devs who have background knowledge on this PR or who will be building on top of this PR
1 parent 9808930 commit 6768daa

File tree

12 files changed

+88
-88
lines changed

12 files changed

+88
-88
lines changed

frontend/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"extends": ["next/core-web-vitals", "next/typescript"]
3-
}
3+
}

frontend/.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore artifacts:
2+
build
3+
coverage

frontend/.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"tabWidth": 2,
6+
"printWidth": 100,
7+
"arrowParens": "always",
8+
"bracketSpacing": true,
9+
"endOfLine": "lf"
10+
}

frontend/package-lock.json

Lines changed: 50 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"next": "^14.2.24",
1213
"react": "^18",
13-
"react-dom": "^18",
14-
"next": "14.2.13"
14+
"react-dom": "^18"
1515
},
1616
"devDependencies": {
17-
"typescript": "^5",
1817
"@types/node": "^20",
1918
"@types/react": "^18",
2019
"@types/react-dom": "^18",
20+
"eslint": "^8",
21+
"eslint-config-next": "14.2.13",
2122
"postcss": "^8",
2223
"tailwindcss": "^3.4.1",
23-
"eslint": "^8",
24-
"eslint-config-next": "14.2.13"
24+
"typescript": "^5"
2525
}
2626
}

frontend/src/pages/_app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import "@/styles/globals.css";
2-
import type { AppProps } from "next/app";
1+
import '@/styles/globals.css';
2+
import type { AppProps } from 'next/app';
33

44
export default function App({ Component, pageProps }: AppProps) {
55
return <Component {...pageProps} />;

frontend/src/pages/_document.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Html, Head, Main, NextScript } from "next/document";
1+
import { Html, Head, Main, NextScript } from 'next/document';
22

33
export default function Document() {
44
return (

frontend/src/pages/index.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import Image from "next/image";
2-
import localFont from "next/font/local";
1+
import Image from 'next/image';
2+
import localFont from 'next/font/local';
33

44
const geistSans = localFont({
5-
src: "./fonts/GeistVF.woff",
6-
variable: "--font-geist-sans",
7-
weight: "100 900",
5+
src: './fonts/GeistVF.woff',
6+
variable: '--font-geist-sans',
7+
weight: '100 900',
88
});
99
const geistMono = localFont({
10-
src: "./fonts/GeistMonoVF.woff",
11-
variable: "--font-geist-mono",
12-
weight: "100 900",
10+
src: './fonts/GeistMonoVF.woff',
11+
variable: '--font-geist-mono',
12+
weight: '100 900',
1313
});
1414

1515
export default function Home() {
@@ -28,7 +28,7 @@ export default function Home() {
2828
/>
2929
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
3030
<li className="mb-2">
31-
Get started by editing{" "}
31+
Get started by editing{' '}
3232
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
3333
src/pages/index.tsx
3434
</code>

0 commit comments

Comments
 (0)