Set up prettier

This commit is contained in:
hexaheximal 2025-07-30 11:29:36 -04:00
commit 155be0776d
Signed by: hexaheximal
GPG key ID: 66512C568C93CD3D
9 changed files with 4960 additions and 55 deletions

7
.prettierrc Normal file
View file

@ -0,0 +1,7 @@
{
"plugins": ["prettier-plugin-astro"],
"tabWidth": 4,
"semi": false,
"overrides": [{ "files": "*.astro", "options": { "parser": "astro" } }],
"trailingComma": "none"
}

View file

@ -11,21 +11,21 @@ export default defineConfig({
"Federated Nexus is a community resource hosting multiple FOSS (especially federated) services, including Matrix and Forgejo.",
favicon: "/images/icon.svg",
logo: {
src: "./src/images/icon.svg",
src: "./src/images/icon.svg"
},
social: [
{
icon: "seti:git",
label: "Source Code",
href: "https://git.federated.nexus",
href: "https://git.federated.nexus"
},
{
icon: "mastodon",
label: "Mastodon",
href: "https://wetdry.world/@QuadRadical",
},
href: "https://wetdry.world/@QuadRadical"
}
]
})
],
}),
],
image: { service: passthroughImageService() },
image: { service: passthroughImageService() }
})

4896
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -9,9 +9,11 @@
"astro": "astro"
},
"devDependencies": {
"@astrojs/starlight": "^0.34.3",
"astro": "^5.1.8",
"prettier": "^3.6.2",
"prettier-plugin-astro": "^0.14.1",
"sharp": "^0.33.5",
"starlight": "^0.3.9",
"@astrojs/starlight": "^0.34.3"
"starlight": "^0.3.9"
}
}

View file

@ -3,5 +3,5 @@ import { docsLoader } from "@astrojs/starlight/loaders"
import { docsSchema } from "@astrojs/starlight/schema"
export const collections = {
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() })
}

View file

@ -70,8 +70,8 @@ import "../styles/login.css"
device_id: session,
initial_device_display_name: `Federated Nexus Login from ${navigator.userAgent}`,
identifier: { type: "m.id.user", user: username },
password,
}),
password
})
}
)