软件简介
这是由 Airbnb 开源的 JavaScript 代码风格指南。主要是为编写 JavaScript 代码提供规范的风格,方便开发者理解、阅读代码。
这份指南提供了以下方面的内容:
-
Types
-
References
-
Objects
-
Arrays
-
Destructuring
-
Strings
-
Functions
-
Arrow Functions
-
Classes & Constructors
-
Modules
-
Iterators and Generators
-
Properties
-
Variables
-
Hoisting
-
Comparison Operators & Equality
-
Blocks
-
Comments
-
Whitespace
-
Commas
-
Semicolons
-
Type Casting & Coercion
-
Naming Conventions
-
Accessors
-
Events
-
jQuery
-
ECMAScript 5 Compatibility
-
ECMAScript 6+ (ES 2015+) Styles
-
Testing
-
Performance
-
Resources
-
In the Wild
-
Translation
-
The JavaScript Style Guide Guide
-
Chat With Us About JavaScript
-
Contributors
-
License