Skip to content
Draft
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
34 changes: 34 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# CLAUDE.md

## Build & Dev

```bash
npm install # Install dependencies
npm run dev # Dev build (no minification)
npm run build # Production build + Firefox ZIP
```

## Lint

```bash
npx eslint .
```

Style: ES2025, double quotes, semicolons, Unix line breaks.

## Code Conventions

- ES6 modules throughout (`"type": "module"`)
- async/await for async operations
- IPC via `browser.runtime.sendMessage({ method: "module.action", ... })`
- UI strings via `browser.i18n.getMessage()`
- Copyright headers on all source files

## Tests

```bash
npm test # Run all tests once
npm run test:watch # Run tests in watch mode
```

Tests live in `test/` and use Vitest. Pure-logic modules are tested (srcset parser, MHTML utilities, yabson serialization, config/download helpers).
Loading