typescript

Configure strict TypeScript compilation, ESLint, Jest, and Husky pre-commit checks.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/aberrantCode/llm_skills --skill typescript-aberrantcode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/aberrantCode/llm_skills/tree/main/codex/skills/typescript
Command: npx skills add https://github.com/aberrantCode/llm_skills --skill typescript-aberrantcode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guarantees rigorous TypeScript compilation, consistent code style, automated testing, and continuous integration checks, preventing bugs and technical debt in JavaScript projects.

Core Features & Use Cases

  • Enforces a strict tsconfig with comprehensive compiler options.
  • Provides an ESLint configuration that eliminates any usage and enforces explicit returns.
  • Includes Jest scripts for unit and integration testing with coverage thresholds.
  • Sets up a GitHub Actions workflow that runs linting, type checking, and tests on every push or pull request.
  • Installs Husky pre‑commit hooks that automatically lint, format, type‑check, and run selective tests before commits. Use case example: a development team starts a new Node library and needs an out‑of‑the‑box setup that enforces strict typing, style consistency, and quality gates through CI.

Quick Start

Ask the assistant to create a new TypeScript project with strict mode, ESLint, Jest, and pre‑commit hooks configured.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I set up strict TypeScript compilation with ESLint and Jest in a new project?

Strict TypeScript compilation with ESLint and Jest is configured by enforcing a strict tsconfig, an ESLint configuration with explicit returns, and Jest scripts with coverage thresholds. This setup prevents bugs and technical debt in JavaScript projects.

Can I use Husky pre-commit hooks to automatically lint and type-check TypeScript code?

Yes, Husky pre-commit hooks automatically lint, format, type-check, and run selective tests before commits. This ensures code quality validation happens locally before changes reach the continuous integration pipeline.

What is the best way to enforce strict typing and quality gates through CI for a Node library?

The best way to enforce strict typing and quality gates is setting up a GitHub Actions workflow that runs linting, type checking, and tests on every push or pull request. This out-of-the-box configuration guarantees rigorous TypeScript compilation.

Does this strict TypeScript setup work for both Node.js and front-end codebases?

Yes, this strict TypeScript setup is applicable to both Node.js and front-end TypeScript codebases. It requires eslint, typescript, jest, husky, and GitHub Actions to run lint, type-check, tests, and pre-commit validation.

Why do I need strict mode and automated quality checks for my TypeScript project?

Strict mode and automated quality checks are needed to guarantee consistent code style, automated testing, and continuous integration enforcement. This prevents bugs and technical debt by eliminating unsafe usage and enforcing explicit returns.