# alivebao/clean-code-js

JavaScript风格指南

Repository: https://github.com/alivebao/clean-code-js
Canonical: https://ross.abutalabs.com/products/clean-code-js
License: MIT
License Family: permissive
Last push: 2019-01-11T11:17:30+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3525, "days_push": 2791, "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 2096, forks 286 (observed 2026-08-28T04:06:13.304164+00:00)

## What it is
A Chinese translation of the Clean Code JavaScript style guide, adapting Robert C. Martin's 'Clean Code' principles to JavaScript. It provides annotated good and bad code examples covering variables, functions, classes, testing, error handling, and formatting.

## Use cases
- learn how to write clean JavaScript code
- find naming conventions for variables and functions in JS
- establish code quality standards for a JavaScript team
- read clean code principles in Chinese
- review best practices for error handling and testing in JavaScript

## When to choose
- you want a readable, example-driven JavaScript style guide in Chinese
- you are onboarding developers to clean code principles
- you need a reference for code review discussions

## When to avoid
- you need an enforced linter or formatter rather than guidelines
- you need the latest ES202x practices, as the guide has not been updated since 2019
- you prefer the original English version with community updates

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: documentation, developer-tools
- domain: developer-tools, programming-languages, tutorials, awesome-lists
- platform: cross-platform
- tags: clean-code, style-guide, javascript, code-quality, chinese-translation, best-practices, nodejs

## Member repositories
- alivebao/clean-code-js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:13.304164+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-30T02:54:34.015983+00:00, confidence not recorded.
  - readme: https://github.com/alivebao/clean-code-js (fetched 2026-08-28T04:06:13.304164+00:00, sha f9114786f7fd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
