JavaScript/TypeScript Code Skill
This skill manages JavaScript and TypeScript specific development practices across Node.js, browsers, and edge runtimes.
When to use this skill
- When writing or maintaining JS/TS applications.
- When dealing with asynchronous programming (Promises, async/await).
- When configuring module systems (ESM vs CommonJS).
Guidelines
- Prefer TypeScript over vanilla JavaScript for large projects to leverage static typing.
- Always use strict equality (
===) and avoid loose equality (==). - Avoid mutating state when possible; prefer functional approaches like
map,filter, andreduce. - Use
constby default,letwhen necessary, and never usevar.