From 2dec2b7b8031566251a58b3fe050efe0086b88d7 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Mon, 10 Mar 2025 09:47:24 -0500 Subject: [PATCH 1/2] Add CLAUDE.md with development guidelines and commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- CLAUDE.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 00000000..18804b07 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,24 @@ +# Coder Extension Development Guidelines + +## Build and Test Commands +- Build: `yarn build` +- Watch mode: `yarn watch` +- Package: `yarn package` +- Lint: `yarn lint` +- Lint with auto-fix: `yarn lint:fix` +- Run all tests: `yarn test` +- Run specific test: `vitest ./src/filename.test.ts` +- CI test mode: `yarn test:ci` + +## Code Style Guidelines +- TypeScript with strict typing +- No semicolons (see `.prettierrc`) +- Trailing commas for all multi-line lists +- 120 character line width +- Use ES6 features (arrow functions, destructuring, etc.) +- Use `const` by default; `let` only when necessary +- Prefix unused variables with underscore (e.g., `_unused`) +- Sort imports alphabetically in groups: external → parent → sibling +- Error handling: wrap and type errors appropriately +- Use async/await for promises, avoid explicit Promise construction where possible +- Test files must be named `*.test.ts` and use Vitest \ No newline at end of file From 99c5e430228b26275de9ffc40a2efa0dbc64da8c Mon Sep 17 00:00:00 2001 From: Benjamin Date: Mon, 10 Mar 2025 10:55:15 -0500 Subject: [PATCH 2/2] lint --- CLAUDE.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 18804b07..7294fd3e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,6 +1,7 @@ # Coder Extension Development Guidelines ## Build and Test Commands + - Build: `yarn build` - Watch mode: `yarn watch` - Package: `yarn package` @@ -11,6 +12,7 @@ - CI test mode: `yarn test:ci` ## Code Style Guidelines + - TypeScript with strict typing - No semicolons (see `.prettierrc`) - Trailing commas for all multi-line lists @@ -21,4 +23,4 @@ - Sort imports alphabetically in groups: external → parent → sibling - Error handling: wrap and type errors appropriately - Use async/await for promises, avoid explicit Promise construction where possible -- Test files must be named `*.test.ts` and use Vitest \ No newline at end of file +- Test files must be named `*.test.ts` and use Vitest