feat: initializes prettier

This commit is contained in:
Dennis Schoepf 2026-02-16 22:01:20 +01:00
parent 51c42eb80d
commit 0c4f160800
10 changed files with 2547 additions and 1484 deletions

11
.prettierrc Normal file
View file

@ -0,0 +1,11 @@
{
"plugins": ["prettier-plugin-astro"],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
}
]
}

View file

@ -204,6 +204,7 @@ The Nix shell provides: Node.js, pnpm, Biome, PostgreSQL, and language servers.
## VS Code Integration
Recommended extensions are configured in `.vscode/extensions.json`:
- Astro language support
- Biome for formatting/linting

View file

@ -33,7 +33,7 @@ To learn more about the folder structure of an Astro project, refer to [our guid
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| :--------------------- | :----------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm dev` | Starts local dev server at `localhost:4321` |
| `pnpm build` | Build your production site to `./dist/` |

View file

@ -1,52 +0,0 @@
{
"$schema": "https://biomejs.dev/schemas/2.4.1/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"includes": ["**", "!**/nix/store"]
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"overrides": [
{
"includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],
"linter": {
"rules": {
"style": {
"useConst": "off",
"useImportType": "off"
},
"correctness": {
"noUnusedVariables": "off",
"noUnusedImports": "off"
}
}
}
}
]
}

View file

@ -7,12 +7,13 @@
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"lint": "biome check --write ."
"format": "pnpm exec prettier . --write"
},
"dependencies": {
"astro": "^5.17.1"
},
"devDependencies": {
"@biomejs/biome": "2.4.1"
"prettier": "3.8.1",
"prettier-plugin-astro": "0.14.1"
}
}

3446
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -8,15 +8,23 @@ import background from "../assets/background.svg";
<main>
<section id="hero">
<a href="https://astro.build"
><img src={astroLogo.src} width="115" height="48" alt="Astro Homepage" /></a
><img
src={astroLogo.src}
width="115"
height="48"
alt="Astro Homepage"
/></a
>
<h1>
To get started, open the <code><pre>src/pages</pre></code> directory in your project.
To get started, open the <code><pre>src/pages</pre></code> directory in your
project.
</h1>
<section id="links">
<a class="button" href="https://docs.astro.build">Read our docs</a>
<a href="https://astro.build/chat"
>Join our Discord <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 127.14 96.36"
>Join our Discord <svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 127.14 96.36"
><path
fill="currentColor"
d="M107.7 8.07A105.15 105.15 0 0 0 81.47 0a72.06 72.06 0 0 0-3.36 6.83 97.68 97.68 0 0 0-29.11 0A72.37 72.37 0 0 0 45.64 0a105.89 105.89 0 0 0-26.25 8.09C2.79 32.65-1.71 56.6.54 80.21a105.73 105.73 0 0 0 32.17 16.15 77.7 77.7 0 0 0 6.89-11.11 68.42 68.42 0 0 1-10.85-5.18c.91-.66 1.8-1.34 2.66-2a75.57 75.57 0 0 0 64.32 0c.87.71 1.76 1.39 2.66 2a68.68 68.68 0 0 1-10.87 5.19 77 77 0 0 0 6.89 11.1 105.25 105.25 0 0 0 32.19-16.14c2.64-27.38-4.51-51.11-18.9-72.15ZM42.45 65.69C36.18 65.69 31 60 31 53s5-12.74 11.43-12.74S54 46 53.89 53s-5.05 12.69-11.44 12.69Zm42.24 0C78.41 65.69 73.25 60 73.25 53s5-12.74 11.44-12.74S96.23 46 96.12 53s-5.04 12.69-11.43 12.69Z"
@ -35,8 +43,8 @@ import background from "../assets/background.svg";
>
<h2>What's New in Astro 5.0?</h2>
<p>
From content layers to server islands, click to learn more about the new features and
improvements in Astro 5.0
From content layers to server islands, click to learn more about the new
features and improvements in Astro 5.0
</p>
</a>
</div>
@ -53,7 +61,9 @@ import background from "../assets/background.svg";
}
#container {
font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
font-family:
Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial,
sans-serif;
height: 100%;
}
@ -115,8 +125,8 @@ import background from "../assets/background.svg";
pre {
font-family:
ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono',
monospace;
ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas,
"DejaVu Sans Mono", monospace;
font-weight: normal;
background: linear-gradient(14deg, #d83333 0%, #f041ff 100%);
-webkit-background-clip: text;

View file

@ -6,7 +6,7 @@
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" href="/favicon.ico" />
<meta name="generator" content={Astro.generator} />
<title>Astro Basics</title>
<title>dnsc.io</title>
</head>
<body>
<slot />