# BingKui/javascript-zh

Airbnb 出品，目前非常流行的 JavaScript 代码规范（中文版）。其内对各种 js 范式的写法进行了详细的规定与说明，按照此规范写出的代码将会更加合理。

Repository: https://github.com/BingKui/javascript-zh
Canonical: https://ross.abutalabs.com/products/javascript-zh
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, eslint, styleguide, style-guide, ecmascript
Last push: 2022-06-07T09:05:06+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": 3026, "days_push": 1548, "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 1399, forks 312 (observed 2026-08-28T04:04:36.906213+00:00)

## What it is
A Chinese translation of the Airbnb JavaScript Style Guide, a widely adopted set of conventions for writing idiomatic, consistent JavaScript. It documents detailed rules for types, references, functions, modules, formatting, and more, and pairs with the eslint-config-airbnb packages for automated enforcement.

## Use cases
- learn how to write JavaScript according to Airbnb's style guide
- find a Chinese-language JavaScript code style guide
- standardize code style across a JavaScript team
- set up ESLint rules based on Airbnb's conventions
- decide best practices for const vs let, arrow functions, and destructuring
- onboard new developers to a consistent JS coding standard

## When to avoid
- you need a style guide in another language (use the original airbnb/javascript repo)
- your project follows a different standard like StandardJS or Prettier defaults
- you need actively updated guidance for the newest ECMAScript features

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: linter, documentation, developer-tools
- domain: web-development, frontend, developer-tools, tutorials
- platform: -
- tags: style-guide, code-style, eslint-config, airbnb, chinese-translation, ecmascript, javascript, nodejs

## Member repositories
- BingKui/javascript-zh (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.906213+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-30T04:39:08.520906+00:00, confidence not recorded.
  - readme: https://github.com/BingKui/javascript-zh (fetched 2026-08-28T04:04:36.906213+00:00, sha d1b7e4afe0f3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
