feat: prettier init with formatted code files

This commit is contained in:
theoleuthardt 2025-02-07 14:02:04 +01:00
parent 5fcfb7ac40
commit 99ffeeafef
12 changed files with 87 additions and 55 deletions

3
.prettierignore Normal file
View file

@ -0,0 +1,3 @@
# Ignore artifacts:
build
coverage

1
.prettierrc Normal file
View file

@ -0,0 +1 @@
{}

View file

@ -30,22 +30,29 @@ To install and run the project locally, follow these steps:
git clone https://github.com/theoleuthardt/werkzeugkiste.git
cd werkzeugkiste
```
2. **Install the dependencies**:
```bash
npm install
```
3. **Start the website locally with npm**:
```bash
npm run start
```
**or**
3. **Start the website with docker compose**:
```bash
docker compose up -d
4. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
```
4. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Authors

View file

@ -1,7 +1,7 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: 'standalone',
output: "standalone",
};
export default nextConfig;

17
package-lock.json generated
View file

@ -20,6 +20,7 @@
"eslint": "^9",
"eslint-config-next": "15.1.6",
"postcss": "^8",
"prettier": "3.4.2",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
@ -4537,6 +4538,22 @@
"node": ">= 0.8.0"
}
},
"node_modules/prettier": {
"version": "3.4.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz",
"integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==",
"dev": true,
"license": "MIT",
"bin": {
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/prop-types": {
"version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",

View file

@ -9,19 +9,20 @@
"lint": "next lint"
},
"dependencies": {
"next": "15.1.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"next": "15.1.6"
"react-dom": "^19.0.0"
},
"devDependencies": {
"typescript": "^5",
"@eslint/eslintrc": "^3",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^9",
"eslint-config-next": "15.1.6",
"@eslint/eslintrc": "^3"
"postcss": "^8",
"prettier": "3.4.2",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}

View file

@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap");
@tailwind base;
@tailwind components;

View file

@ -13,11 +13,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body
className={`antialiased`}
>
{children}
</body>
<body className={`antialiased`}>{children}</body>
</html>
);
}

View file

@ -1,4 +1,4 @@
import Navbar from '../components/Navbar';
import Navbar from "../components/Navbar";
export default function Home() {
return (

View file

@ -3,10 +3,10 @@ import Image from "next/image";
import LOGO from "../assets/logo/icons8-toolbox-64.svg";
interface NavProps {
renderHomeLink: boolean,
renderHomeLink: boolean;
}
const navbar = (props:NavProps) => {
const navbar = (props: NavProps) => {
return (
<div className="h-18 w-full p-3 border-2 border-white">
<nav className="bg-black text-white font-bold flex flex-row items-center justify-between">
@ -21,12 +21,19 @@ const navbar = (props:NavProps) => {
<div className="text-white ml-5">werkzeugkiste.</div>
</div>
<div className="flex flex-auto justify-center">
{props.renderHomeLink ?
<a href="#" className="justify-center">home</a>
: null}
{props.renderHomeLink ? (
<a href="#" className="justify-center">
home
</a>
) : null}
</div>
<div className="flex flex-auto">
<a href="https://github.com/theoleuthardt/werkzeugkiste" className="items-end mr-3">github</a>
<a
href="https://github.com/theoleuthardt/werkzeugkiste"
className="items-end mr-3"
>
github
</a>
</div>
</nav>
</div>

View file

@ -14,7 +14,7 @@ export default {
},
fontFamily: {
noto: ["Noto Serif", "serif"],
}
},
},
},
plugins: [],