Skip to content

Commit 9c5f666

Browse files
committed
Add project guidelines and best practices to Copilot instructions
1 parent 0775280 commit 9c5f666

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/copilot-instructions.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Project Guidelines
2+
3+
## Technology Stack
4+
5+
- Node.js with Express
6+
- SQLite via better-sqlite3
7+
- EJS templates for server-rendered HTML
8+
- xUnit-style tests with Jest
9+
10+
## Code Style
11+
12+
- Use async/await — never raw callbacks or `.then()` chains
13+
- Follow the existing error handling pattern in `src/errorHandler.js`
14+
- All new routes must be added to `src/routes.js` following the existing pattern
15+
- Use 2-space indentation
16+
17+
## Testing
18+
19+
- Every new route must have a corresponding test in `tests/`
20+
- Use supertest for HTTP integration tests
21+
22+
## Security
23+
24+
- Never log user-provided input directly
25+
- Validate all request parameters before database access

0 commit comments

Comments
 (0)