feat: initializes prettier
This commit is contained in:
parent
51c42eb80d
commit
0c4f160800
10 changed files with 2547 additions and 1484 deletions
11
.prettierrc
Normal file
11
.prettierrc
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"plugins": ["prettier-plugin-astro"],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": "*.astro",
|
||||||
|
"options": {
|
||||||
|
"parser": "astro"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -204,6 +204,7 @@ The Nix shell provides: Node.js, pnpm, Biome, PostgreSQL, and language servers.
|
||||||
## VS Code Integration
|
## VS Code Integration
|
||||||
|
|
||||||
Recommended extensions are configured in `.vscode/extensions.json`:
|
Recommended extensions are configured in `.vscode/extensions.json`:
|
||||||
|
|
||||||
- Astro language support
|
- Astro language support
|
||||||
- Biome for formatting/linting
|
- Biome for formatting/linting
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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:
|
All commands are run from the root of the project, from a terminal:
|
||||||
|
|
||||||
| Command | Action |
|
| Command | Action |
|
||||||
| :------------------------ | :----------------------------------------------- |
|
| :--------------------- | :----------------------------------------------- |
|
||||||
| `pnpm install` | Installs dependencies |
|
| `pnpm install` | Installs dependencies |
|
||||||
| `pnpm dev` | Starts local dev server at `localhost:4321` |
|
| `pnpm dev` | Starts local dev server at `localhost:4321` |
|
||||||
| `pnpm build` | Build your production site to `./dist/` |
|
| `pnpm build` | Build your production site to `./dist/` |
|
||||||
|
|
|
||||||
52
biome.json
52
biome.json
|
|
@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -7,12 +7,13 @@
|
||||||
"build": "astro build",
|
"build": "astro build",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
"lint": "biome check --write ."
|
"format": "pnpm exec prettier . --write"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^5.17.1"
|
"astro": "^5.17.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "2.4.1"
|
"prettier": "3.8.1",
|
||||||
|
"prettier-plugin-astro": "0.14.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
3446
pnpm-lock.yaml
generated
3446
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -8,15 +8,23 @@ import background from "../assets/background.svg";
|
||||||
<main>
|
<main>
|
||||||
<section id="hero">
|
<section id="hero">
|
||||||
<a href="https://astro.build"
|
<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>
|
<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>
|
</h1>
|
||||||
<section id="links">
|
<section id="links">
|
||||||
<a class="button" href="https://docs.astro.build">Read our docs</a>
|
<a class="button" href="https://docs.astro.build">Read our docs</a>
|
||||||
<a href="https://astro.build/chat"
|
<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
|
><path
|
||||||
fill="currentColor"
|
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"
|
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>
|
<h2>What's New in Astro 5.0?</h2>
|
||||||
<p>
|
<p>
|
||||||
From content layers to server islands, click to learn more about the new features and
|
From content layers to server islands, click to learn more about the new
|
||||||
improvements in Astro 5.0
|
features and improvements in Astro 5.0
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -53,7 +61,9 @@ import background from "../assets/background.svg";
|
||||||
}
|
}
|
||||||
|
|
||||||
#container {
|
#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%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -115,8 +125,8 @@ import background from "../assets/background.svg";
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
font-family:
|
font-family:
|
||||||
ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono',
|
ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas,
|
||||||
monospace;
|
"DejaVu Sans Mono", monospace;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
background: linear-gradient(14deg, #d83333 0%, #f041ff 100%);
|
background: linear-gradient(14deg, #d83333 0%, #f041ff 100%);
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<meta name="generator" content={Astro.generator} />
|
<meta name="generator" content={Astro.generator} />
|
||||||
<title>Astro Basics</title>
|
<title>dnsc.io</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<slot />
|
<slot />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue