Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ What happens instead?
Minimal example to reproduce the issue.

**Environment**

- Package version:
- Astro version:
- Node version:
- Node version:
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ What problem does this solve?
What would you like to see added or changed?

**Alternatives considered**
Any other approaches you've thought about?
Any other approaches you've thought about?
4 changes: 3 additions & 1 deletion .github/PULL_REQUEST_TEMPALTE.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
## What does this PR do?

## Type of change

- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Documentation update

## Checklist

- [ ] `pnpm check` passes
- [ ] `pnpm test:unit` passes
- [ ] `pnpm test:e2e` passes
- [ ] `README` updated if needed
- [ ] `README` updated if needed
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
tests/e2e/fixtures/node_modules
tests/e2e/results
dist
dist
.github
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,21 +530,21 @@ pnpm test:all

### Linting and formatting

This project uses [Biome](https://biomejs.dev) for linting and formatting.
This project uses [Biome](https://biomejs.dev) for linting and [Prettier](https://prettier.io) for formatting.

Check for issues:

```bash
pnpm check
```

Auto-fix issues:
Format files:

```bash
pnpm check:fix
pnpm format
```

All pull requests must pass the Biome check and unit tests before merging. These are enforced automatically via GitHub Actions.
All pull requests must pass `pnpm check` before merging. This is enforced automatically via GitHub Actions.

### Project structure

Expand All @@ -565,6 +565,7 @@ astro-metadata/
playwright.config.ts
vitest.config.ts
biome.json
prettier.config.ts
```

## License
Expand Down
3 changes: 3 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"recommended": true,
"correctness": {
"useJsxKeyInIterable": "off"
},
"style": {
"useImportType": "off"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mannisto/astro-metadata",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"description": "Astro components for managing your page head — metadata, social sharing, favicons, and SEO.",
"license": "MIT",
"type": "module",
Expand Down
8 changes: 1 addition & 7 deletions prettier.config.ts → prettier.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import type { Config } from "prettier"

/**
* NOTE: Prettier will be removed in the future and replaced with Biome,
* when we have a way to format Astro files with Biome.
*/
const config: Config = {
const config = {
plugins: ["prettier-plugin-astro"],
semi: false,
singleQuote: false,
Expand Down