# labs42io/clean-code-typescript

Clean Code concepts adapted for TypeScript

Repository: https://github.com/labs42io/clean-code-typescript
Canonical: https://ross.abutalabs.com/products/clean-code-typescript
Homepage: https://labs42io.github.io/clean-code-typescript
Language: TypeScript
License: MIT
License Family: permissive
Topics: clean-code, typescript, best-practices, solid, coding-guidelines, clean-architecture, principles
Last push: 2025-07-01T14:56:36+00:00

## Health v2 (maintenance only)
Score: 45/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 29, release rhythm 35, longevity 100
- inputs: {"age_days": 2780, "days_push": 428, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9802, forks 1175 (observed 2026-08-28T04:10:37.235586+00:00)

## What it is
A guide adapting Robert C. Martin's Clean Code principles to TypeScript, published as a documentation site with concise bad-vs-good code examples. It covers variables, functions, objects and classes, SOLID, testing, concurrency, error handling, formatting, and comments as advisory guidelines rather than enforceable rules.

## Use cases
- learn clean code best practices for typescript
- typescript coding guidelines with good and bad examples
- how to write readable maintainable typescript code
- solid principles explained for typescript
- reference for typescript code review standards
- improve code quality in a typescript team
- error handling and testing conventions in typescript

## When to choose
- You want a readable, example-driven reference for producing clean TypeScript code
- You need a shared coding guideline document to align a TypeScript team during onboarding or reviews
- You are coming to TypeScript from JavaScript or another language and want idiomatic patterns

## When to avoid
- You need automatically enforceable lint rules instead of manual guidelines - use ESLint with a config like eslint-config-airbnb-typescript
- You require an official or prescriptive style guide rather than opinionated advice
- You need runnable tooling such as a CLI or library, since this is purely documentation

## Facets
- artifact type: learning-resource
- maturity: stable
- function: documentation, developer-tools
- domain: developer-tools, tutorials, documentation, programming-languages
- platform: cross-platform
- tags: clean-code, typescript, best-practices, solid-principles, coding-guidelines, code-quality, refactoring, code-review, style-guide, nodejs

## Member repositories
- labs42io/clean-code-typescript (main) score 45

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:37.235586+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:20:59.933460+00:00, confidence not recorded.
  - readme: https://github.com/labs42io/clean-code-typescript (fetched 2026-08-28T04:10:37.235586+00:00, sha 676d2560c1fa)
  - homepage: https://labs42io.github.io/clean-code-typescript (fetched 2026-08-29T08:20:57.419050+00:00, sha 7bc7f2415360)
- Data as of 2026-08-30T08:39:29.467469+00:00.
