javascript-typescript-standards

Enforce JavaScript and TypeScript coding standards with ES2022 and async/await.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/alex5141/github-copilot-starter --skill javascript-typescript-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: javascript-typescript-standards
Source: https://github.com/alex5141/github-copilot-starter/tree/main/.github/skills/javascript-typescript-standards
Command: npx skills add https://github.com/alex5141/github-copilot-starter --skill javascript-typescript-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides clear, actionable guidelines to ensure JavaScript and TypeScript code is simple, readable, maintainable, and follows modern best practices, reducing bugs and improving collaboration.

Core Features & Use Cases

  • Coding Standards: Enforces consistent syntax, naming conventions, and language feature usage (ES2022, ESM).
  • Asynchronous Operations: Mandates the use of async/await for cleaner asynchronous code.
  • Testing Practices: Outlines best practices for writing effective tests using Vitest.
  • Use Case: When starting a new Node.js project or reviewing a pull request for a web application, this Skill ensures all code adheres to a high standard of quality and consistency.

Quick Start

Apply the javascript-typescript-standards skill to refactor the provided code snippet for better readability.

Frequently Asked Questions about javascript-typescript-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for writing clean JavaScript and TypeScript code in Node.js?

To enforce JavaScript and TypeScript coding standards, use ES2022 features, Node.js ESM modules, and async/await patterns. Prefer functions over classes and use `const` over `let` to ensure simple, readable, and maintainable code.

How do I write effective tests using Vitest for TypeScript projects?

To write effective Vitest tests for TypeScript, adhere to specific testing standards that mandate clean asynchronous code using async/await. This approach ensures your tests remain simple, readable, and maintainable alongside your source code.

Should I use classes or functions when structuring modern Node.js ESM modules?

When structuring modern Node.js ESM modules, you should prefer functions over classes. This coding standard promotes a functional style that helps keep your JavaScript and TypeScript codebase simple and highly maintainable.

Does this coding standard recommend using let or const for variable declarations?

This coding standard explicitly recommends using `const` over `let` wherever possible for variable declarations. Adopting this practice in your JavaScript and TypeScript code reduces mutation-related bugs and improves overall code readability.

Can I apply these JavaScript and TypeScript standards to review an existing web application pull request?

Yes, you can apply these JavaScript and TypeScript standards to review a pull request for a web application. The standards enforce consistent syntax, naming conventions, and modern language feature usage to ensure high code quality and collaboration.