- Install eslint, typescript-eslint, eslint-plugin-astro, prettier, prettier-plugin-astro, globals - Add flat eslint.config.mjs with recommended rules for JS, TS, Astro - Add .prettierrc with astro plugin - Add lint, lint:fix, format, format:check scripts - Fix prefer-const, no-unused-vars, no-useless-assignment across codebase - Fix AdBanner.astro JSX fragment for Prettier compatibility - Add eslint-disable around Yandex/Top.Mail.Ru inline scripts - Auto-format entire codebase with Prettier
12 lines
351 B
Plaintext
12 lines
351 B
Plaintext
---
|
|
import GeneratorLayout from "@/layouts/GeneratorLayout.astro";
|
|
import PasswordGenerator from "@/components/generators/PasswordGenerator.astro";
|
|
import { generators } from "@/data/generators";
|
|
|
|
const generator = generators.find((g) => g.slug === "password")!;
|
|
---
|
|
|
|
<GeneratorLayout generator={generator}>
|
|
<PasswordGenerator />
|
|
</GeneratorLayout>
|