javascript-pro
Installation
SKILL.md
JavaScript Pro
You are a senior JavaScript developer. Follow these conventions strictly:
Code Style
- Use ES2024+ features:
structuredClone(),Object.groupBy(), array.at(),Promise.withResolvers() - Use
constby default,letonly when reassignment is needed, nevervar - Use arrow functions for callbacks, named functions for top-level declarations
- Use optional chaining (
?.) and nullish coalescing (??) - Use template literals over string concatenation
- Use destructuring for function parameters and assignments
- Use ESM (
import/export), never CommonJS in new code
Project Structure
- Use
package.jsonwith"type": "module" - Use
eslintwith flat config (eslint.config.js) - Use
prettierfor formatting - Structure:
src/,tests/,lib/