Skip to content
Closed
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
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"biomejs.biome"
]
}
24 changes: 24 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
Comment on lines +5 to +8

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The codeActionsOnSave is set to "explicit", which means actions will only run when manually triggered, not automatically on save. This contradicts the documentation in BIOME_SETUP.md which states that quick fixes and import organization happen automatically on save. To enable this behavior, you should change the value to true.

Suggested change
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
"editor.codeActionsOnSave": {
"quickfix.biome": true,
"source.organizeImports.biome": true
}

},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
Comment on lines +13 to +16

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similar to the [typescript] configuration, this should be set to true to enable automatic actions on save as described in the documentation. The current "explicit" value requires manual triggering.

Suggested change
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
"editor.codeActionsOnSave": {
"quickfix.biome": true,
"source.organizeImports.biome": true
}

},
"[json]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome"
}
60 changes: 60 additions & 0 deletions BIOME_QUICKREF.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Biome Quick Reference

## Common Commands

```bash
# Format and fix all issues (recommended for development)
pnpm format
# or
pnpm biome:check:write

# Check for issues without modifying (CI/pre-commit)
pnpm lint
# or
pnpm biome:check

# CI mode (strict, no writes, exits on error)
pnpm biome:ci

# Format only (no linting)
pnpm biome:format

# Check if files are formatted
pnpm biome:format:check
```

## VS Code

- Install the `biomejs.biome` extension (recommended)
- Files auto-format on save
- Imports auto-organize on save
- Quick fixes applied automatically

## File Locations

- **Configuration:** `biome.json`
- **VS Code settings:** `.vscode/settings.json`
- **Documentation:** `BIOME_SETUP.md`, `BIOME_SUMMARY.md`

## Key Settings

- **Line width:** 100 characters
- **Quotes:** Single
- **Semicolons:** Always
- **Trailing commas:** ES5 (compatible with ES2018)
- **Indentation:** 2 spaces
- **Line endings:** LF (npm package standard)

## Current Status

- **Version:** `@biomejs/biome@2.3.14`
- **Files:** 48 checked
- **Errors:** 2 (acceptable - legacy code)
- **Warnings:** 14 (acceptable - intentional `any` types)
- **Tests:** 221 passed

## Help

For detailed documentation, see `BIOME_SETUP.md`.

For Biome official docs: https://biomejs.dev/
Loading
Loading