Skip to content

Commit 59d0163

Browse files
bfirshclaude
andcommitted
Fix web formatting and add web Prettier reminder to CLAUDE.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5e4e00a commit 59d0163

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
77
- `npm test` - Run code formatting check and tests (required before commits)
88
- `npm run build` - Build distribution files (`dist/jsnes.js` and `dist/jsnes.min.js`)
99
- `npm run format` - Auto-format all source code with Prettier
10+
- `cd web && npx prettier --write src/` - Format web UI code (web has its own Prettier config; `npm run format` only covers `src/`)
1011
- `npm run test:watch` - Run tests in watch mode for development
1112
- `npm run typecheck` - TypeScript type checking (verifies `.d.ts` files)
1213
- `node bench.js` - Run performance benchmark (~1800 fps baseline). Run this on major changes or when you suspect a performance regression/improvement.

web/src/Emulator.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ class Emulator extends Component {
6060
// done by audio instead of requestAnimationFrame.
6161
// - System can't run emulator at full speed. In this case it'll stop
6262
// firing requestAnimationFrame.
63-
debug(
64-
"Buffer underrun, running another frame to try and catch up",
65-
);
63+
debug("Buffer underrun, running another frame to try and catch up");
6664

6765
this.frameTimer.generateFrame();
6866
// desiredSize will be 2048, and the NES produces 1468 samples on each

0 commit comments

Comments
 (0)