Apply Prettier to all files

This commit is contained in:
Marcus Blättermann 2022-11-10 01:01:24 +01:00
parent b473ff528a
commit 3690192dbd
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D
11 changed files with 8753 additions and 8745 deletions

View File

@ -1,4 +1,5 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). This is a [Next.js](https://nextjs.org/) project bootstrapped with
[`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started ## Getting Started
@ -10,25 +11,38 @@ npm run dev
yarn dev yarn dev
``` ```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. Open [http://localhost:3000](http://localhost:3000) with your browser to see the
result.
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. You can start editing the page by modifying `pages/index.tsx`. The page
auto-updates as you edit the file.
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. [API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on
[http://localhost:3000/api/hello](http://localhost:3000/api/hello). This
endpoint can be edited in `pages/api/hello.ts`.
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. The `pages/api` directory is mapped to `/api/*`. Files in this directory are
treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead
of React pages.
## Learn More ## Learn More
To learn more about Next.js, take a look at the following resources: To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js
features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! You can check out
[the Next.js GitHub repository](https://github.com/vercel/next.js/) - your
feedback and contributions are welcome!
## Deploy on Vercel ## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. The easiest way to deploy your Next.js app is to use the
[Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme)
from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. Check out our
[Next.js deployment documentation](https://nextjs.org/docs/deployment) for more
details.

View File

@ -1,12 +1,12 @@
const withMDX = require("@next/mdx")({ const withMDX = require('@next/mdx')({
extension: /\.mdx?$/, extension: /\.mdx?$/,
}); })
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = withMDX({ const nextConfig = withMDX({
reactStrictMode: true, reactStrictMode: true,
swcMinify: true, swcMinify: true,
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"], pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
}); })
module.exports = nextConfig; module.exports = nextConfig

View File

@ -5,9 +5,6 @@ type Data = {
name: string name: string
} }
export default function handler( export default function handler(req: NextApiRequest, res: NextApiResponse<Data>) {
req: NextApiRequest,
res: NextApiResponse<Data>
) {
res.status(200).json({ name: 'John Doe' }) res.status(200).json({ name: 'John Doe' })
} }

View File

@ -17,8 +17,7 @@ export default function Home() {
</h1> </h1>
<p className={styles.description}> <p className={styles.description}>
Get started by editing{' '} Get started by editing <code className={styles.code}>pages/index.tsx</code>
<code className={styles.code}>pages/index.tsx</code>
</p> </p>
<div className={styles.grid}> <div className={styles.grid}>
@ -47,9 +46,7 @@ export default function Home() {
className={styles.card} className={styles.card}
> >
<h2>Deploy &rarr;</h2> <h2>Deploy &rarr;</h2>
<p> <p>Instantly deploy your Next.js site to a public URL with Vercel.</p>
Instantly deploy your Next.js site to a public URL with Vercel.
</p>
</a> </a>
</div> </div>
</main> </main>

View File

@ -2,8 +2,8 @@ html,
body { body {
padding: 0; padding: 0;
margin: 0; margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
} }
a { a {