File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Coder Extension Development Guidelines
2
+
3
+ ## Build and Test Commands
4
+ - Build: ` yarn build `
5
+ - Watch mode: ` yarn watch `
6
+ - Package: ` yarn package `
7
+ - Lint: ` yarn lint `
8
+ - Lint with auto-fix: ` yarn lint:fix `
9
+ - Run all tests: ` yarn test `
10
+ - Run specific test: ` vitest ./src/filename.test.ts `
11
+ - CI test mode: ` yarn test:ci `
12
+
13
+ ## Code Style Guidelines
14
+ - TypeScript with strict typing
15
+ - No semicolons (see ` .prettierrc ` )
16
+ - Trailing commas for all multi-line lists
17
+ - 120 character line width
18
+ - Use ES6 features (arrow functions, destructuring, etc.)
19
+ - Use ` const ` by default; ` let ` only when necessary
20
+ - Prefix unused variables with underscore (e.g., ` _unused ` )
21
+ - Sort imports alphabetically in groups: external → parent → sibling
22
+ - Error handling: wrap and type errors appropriately
23
+ - Use async/await for promises, avoid explicit Promise construction where possible
24
+ - Test files must be named ` *.test.ts ` and use Vitest
You can’t perform that action at this time.
0 commit comments