typescript-strictest-standards

Enforce strict TypeScript configuration with banned types and adjacent tests.

836|66|Updated Feb 3, 2025
One-click install
npx skills add https://github.com/kreuzberg-dev/html-to-markdown --skill typescript-strictest-standards-kreuzberg-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-strictest-standards
Source: https://github.com/kreuzberg-dev/html-to-markdown/tree/main/.codex/skills/typescript-strictest-standards
Command: npx skills add https://github.com/kreuzberg-dev/html-to-markdown --skill typescript-strictest-standards-kreuzberg-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces the most rigorous TypeScript configuration, eliminating common pitfalls and ensuring maximum code safety and maintainability.

Core Features & Use Cases

  • Strict Type Checking: Enables all strict flags (strict, noUncheckedIndexedAccess, exactOptionalPropertyTypes).
  • Type Safety: Bans any and object types, promoting unknown with type guards.
  • Modern Practices: Encourages generics, satisfies operator, const assertions, and functional programming paradigms.
  • Testing: Mandates tests adjacent to source files with high coverage.
  • Use Case: Ensure a new TypeScript project adheres to best practices from the outset, preventing type-related bugs and improving developer onboarding.

Quick Start

Apply the typescript-strictest-standards skill to the current project's configuration files.

Frequently Asked Questions about typescript-strictest-standards

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

FAQPage Schema
How do I configure TypeScript strict mode to ban `any` types and require generics?

TypeScript strict typing prevents runtime bugs by enabling strict flags like `noUncheckedIndexedAccess` and `exactOptionalPropertyTypes`. It mandates high test coverage adjacent to source files and bans `any` types to ensure maximum code safety.

How do I set up a TypeScript project with strict type checking and adjacent test files?

Setting up a TypeScript project with strict type checking involves enabling all strict flags and configuring your test runner to mandate tests adjacent to source files. This approach guarantees high coverage and functional programming paradigms.

Does this strict TypeScript configuration work with pnpm and biome?

Yes, this strict TypeScript configuration works with pnpm and biome. It utilizes pnpm for package management and biome for linting and formatting, enforcing specific React component patterns alongside modern TypeScript features.

What is the best way to enforce modern TypeScript features like `satisfies` and `const` assertions?

The best way to enforce modern TypeScript features like `satisfies` and `const` assertions is through a strict configuration standard. It mandates these operators alongside functional programming paradigms to eliminate common pitfalls and improve maintainability.

When should I not use the strictest TypeScript configuration for my project?

You should not use the strictest TypeScript configuration if your project requires rapid prototyping with loose typing. Banning `any` and requiring generics introduces strict barriers that may slow down initial development and developer onboarding.