🎉 Smithery is now a part of Arcade.dev! Read more in our announcement here
Applies TypeScript naming conventions for variables, functions, classes, types, and files. Use when writing new code or reviewing naming patterns. Triggers: "命名规范", "怎么命名", "变量名", "naming convention".
userName
fetchUser
UserService
ApiResponse
MAX_RETRY
API_URL
isActive
hasPermission
users
items
user-service.ts
is
isLoading
has
hasError
can
canEdit
canSubmit
should
shouldRefresh
shouldRetry
will
willUpdate
willExpire
did
didMount
didChange
// UPPER_SNAKE: 编译时确定、不可变 const MAX_RETRY = 3 const API_URL = 'https://api.example.com' // camelCase: 运行时计算 const currentUser = fetchUser()
ctx
cfg
req/res
err
fn
ref
prev/next
idx
避免:单字母变量(除 i/j/k 和 T/K/V)
i/j/k
T/K/V