Skip to content

Commit 07b4e54

Browse files
committed
Fix prettier formatting in typescript skill
1 parent ff8acb0 commit 07b4e54

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

  • plugins/corbits-skills/skills/typescript

plugins/corbits-skills/skills/typescript/SKILL.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ Load alongside `style` and `philosophy` when writing or reviewing TS.
3535

3636
Language-general naming lives in `style`. TS-specific suffixes:
3737

38-
| Pattern | Use | Example |
39-
| ------- | --- | ------- |
40-
| `PascalCase` | Types, interfaces | `RequestConfig` |
41-
| `*Args` / `*Opts` | Function arguments | `CreateHandlerOpts` |
42-
| `*Response` | API / handler results | `SettleResponse` |
43-
| `create*` | Factories | `createClient` |
44-
| `is*` | Type predicates / booleans | `isValidationError` |
38+
| Pattern | Use | Example |
39+
| ----------------- | -------------------------- | ------------------- |
40+
| `PascalCase` | Types, interfaces | `RequestConfig` |
41+
| `*Args` / `*Opts` | Function arguments | `CreateHandlerOpts` |
42+
| `*Response` | API / handler results | `SettleResponse` |
43+
| `create*` | Factories | `createClient` |
44+
| `is*` | Type predicates / booleans | `isValidationError` |
4545

4646
Acronyms keep their natural case in types and values (`JSONSchema`, `getURL`, `parseHTTPHeaders`). `ID` is an abbreviation → `userId`, `getId()`.
4747

@@ -157,7 +157,9 @@ Named exports only. Prefer `create*` factories returning objects with methods ov
157157
```typescript
158158
export function createMiddleware(args: CreateMiddlewareArgs) {
159159
return {
160-
handle: async (req: Request) => { /* ... */ },
160+
handle: async (req: Request) => {
161+
/* ... */
162+
},
161163
};
162164
}
163165
```

0 commit comments

Comments
 (0)