Updated TypeScript Style Guide (markdown)

2025-11-03 13:39:37 -06:00
parent eee5cb3ac5
commit d0e1c8c45f

@@ -151,7 +151,6 @@ let selectedCourse: Course | null = null;
```typescript
// Good
const courseList = [];
const activeSchedule = schedules[0];
function getCourseById(id: number) {}
async function fetchCourses() {}
@@ -167,7 +166,6 @@ function GetCourseById(id: number) {}
// Good
const MAX_COURSES = 10;
const API_URL = 'https://api.example.com';
const CACHE_TTL = 3600;
// Bad
const maxCourses = 10;
@@ -208,7 +206,7 @@ class Course {
### Import Order
Organize imports in this order:
Imports should automatically be organized through the linter. For reference, organize imports in this order:
1. External libraries
2. Internal absolute imports