You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@
21
21
22
22
-**Imports**: Always use `import type { X }` for types (separate from value imports); use `export type { X }` for type exports; include `.ts` extensions
23
23
-**Variables**: Prefer `let` for locals, `const` only at module scope; never use `var`
24
+
-**Functions**: Use regular function declarations/expressions by default. Only use arrow functions as callbacks (e.g., route handlers, array methods) where preserving lexical `this` is beneficial or the syntax is more concise
24
25
-**Classes**: Use native fields (omit `public`), `#private` for private members (no TypeScript accessibility modifiers)
25
26
-**Formatting**: Prettier (printWidth: 100, no semicolons, single quotes, spaces not tabs)
0 commit comments