1
- [ ![ Gitter] (https://badges.gitter.im/Join Chat.svg)] ( https://gitter.im/airbnb/javascript?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge )
2
-
3
1
# Airbnb JavaScript Style Guide() {
4
2
5
3
** 用更合理的方式写 JavaScript**
6
4
5
+ [ ![ Downloads] ( https://img.shields.io/npm/dm/eslint-config-airbnb.svg )] ( https://www.npmjs.com/package/eslint-config-airbnb )
6
+ [ ![ Downloads] ( https://img.shields.io/npm/dm/eslint-config-airbnb-base.svg )] ( https://www.npmjs.com/package/eslint-config-airbnb-base )
7
+ [ ![ Gitter] ( https://badges.gitter.im/Join%20Chat.svg )] ( https://gitter.im/airbnb/javascript?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge )
8
+
7
9
ES5 的编码规范请查看[ 版本一] ( https://github.com/sivan/javascript-style-guide/blob/master/es5/README.md ) ,[ 版本二] ( https://github.com/adamlu/javascript-style-guide ) 。
8
10
9
11
翻译自 [ Airbnb JavaScript Style Guide] ( https://github.com/airbnb/javascript ) 。
@@ -21,11 +23,11 @@ ES5 的编码规范请查看[版本一](https://github.com/sivan/javascript-styl
21
23
1 . [ 箭头函数] ( #arrow-functions )
22
24
1 . [ 构造函数] ( #constructors )
23
25
1 . [ 模块] ( #modules )
24
- 1 . [ Iterators & Generators ] ( #iterators-and-generators )
26
+ 1 . [ 迭代器和生成器 ] ( #iterators-and-generators )
25
27
1 . [ 属性] ( #properties )
26
28
1 . [ 变量] ( #variables )
27
29
1 . [ 提升] ( #hoisting )
28
- 1 . [ 比较运算符 & 等号 ] ( #comparison-operators--equality )
30
+ 1 . [ 比较运算符和等号 ] ( #comparison-operators--equality )
29
31
1 . [ 代码块] ( #blocks )
30
32
1 . [ 注释] ( #comments )
31
33
1 . [ 空白] ( #whitespace )
@@ -40,13 +42,13 @@ ES5 的编码规范请查看[版本一](https://github.com/sivan/javascript-styl
40
42
1 . [ ECMAScript 6 编码规范] ( #ecmascript-6-styles )
41
43
1 . [ 测试] ( #testing )
42
44
1 . [ 性能] ( #performance )
43
- 1 . [ 资源 ] ( #resources )
44
- 1 . [ 使用人群 ] ( #in-the-wild )
45
- 1 . [ 翻译 ] ( #translation )
45
+ 1 . [ 相关资源 ] ( #resources )
46
+ 1 . [ 使用情况 ] ( #in-the-wild )
47
+ 1 . [ 其他翻译 ] ( #translation )
46
48
1 . [ JavaScript 编码规范说明] ( #the-javascript-style-guide-guide )
47
- 1 . [ 一起来讨论 JavaScript] ( #chat-with-us-about-javascript )
48
- 1 . [ Contributors ] ( #contributors )
49
- 1 . [ License ] ( #license )
49
+ 1 . [ 讨论 JavaScript] ( #chat-with-us-about-javascript )
50
+ 1 . [ 贡献者 ] ( #contributors )
51
+ 1 . [ 许可协议 ] ( #license )
50
52
51
53
<a name =" types " ></a >
52
54
## 类型
@@ -1053,7 +1055,7 @@ ES5 的编码规范请查看[版本一](https://github.com/sivan/javascript-styl
1053
1055
** [⬆ 返回目录](#table- of - contents)**
1054
1056
1055
1057
< a name= " comparison-operators--equality" >< / a>
1056
- ## 比较运算符 & 等号
1058
+ ## 比较运算符和等号
1057
1059
1058
1060
- [15.1 ](#15.1 ) < a name= ' 15.1' >< / a> 优先使用 ` ===` 和 ` !==` 而不是 ` ==` 和 ` !=` .
1059
1061
- [15.2 ](#15.2 ) < a name= ' 15.2' >< / a> 条件表达式例如 ` if` 语句通过抽象方法 ` ToBoolean` 强制计算它们的表达式并且总是遵守下面的规则:
@@ -1901,28 +1903,28 @@ ES5 的编码规范请查看[版本一](https://github.com/sivan/javascript-styl
1901
1903
< a name= " ecmascript-5-compatibility" >< / a>
1902
1904
## ECMAScript 5 兼容性
1903
1905
1904
- - [26.1 ](#26.1 ) < a name= ' 26.1' >< / a> 参考 [Kangax](https: // twitter.com/kangax/) 的 ES5 [兼容性](http://kangax.github.com/es5-compat-table/).
1906
+ - [26.1 ](#26.1 ) < a name= ' 26.1' >< / a> 参考 [Kangax](https: // twitter.com/kangax/) 的 ES5 [兼容性](http://kangax.github.com/es5-compat-table/)。
1905
1907
1906
1908
** [⬆ 返回目录](#table- of - contents)**
1907
1909
1908
1910
< a name= " ecmascript-6-styles" >< / a>
1909
1911
## ECMAScript 6 规范
1910
1912
1911
- - [27.1 ](#27.1 ) < a name= ' 27.1' >< / a> 以下是链接到 ES6 的各个特性的列表 。
1913
+ - [27.1 ](#27.1 ) < a name= ' 27.1' >< / a> 以下是链接到 ES6 各个特性的列表 。
1912
1914
1913
- 1. [Arrow Functions ](#arrow- functions)
1914
- 1. [Classes ](#constructors)
1915
- 1. [Object Shorthand ](#es6- object- shorthand)
1916
- 1. [Object Concise ](#es6- object- concise)
1917
- 1. [Object Computed Properties ](#es6- computed- properties)
1918
- 1. [Template Strings ](#es6- template- literals)
1919
- 1. [Destructuring ](#destructuring)
1920
- 1. [Default Parameters ](#es6- default- parameters)
1915
+ 1. [箭头函数 ](#arrow- functions)
1916
+ 1. [类 ](#constructors)
1917
+ 1. [对象方法简写 ](#es6- object- shorthand)
1918
+ 1. [对象属性简写 ](#es6- object- concise)
1919
+ 1. [对象中的可计算属性 ](#es6- computed- properties)
1920
+ 1. [模板字符串 ](#es6- template- literals)
1921
+ 1. [解构 ](#destructuring)
1922
+ 1. [默认参数 ](#es6- default- parameters)
1921
1923
1. [Rest](#es6- rest)
1922
- 1. [Array Spreads](#es6- array- spreads)
1923
- 1. [Let and Const](#references)
1924
- 1. [Iterators and Generators ](#iterators- and- generators)
1925
- 1. [Modules ](#modules)
1924
+ 1. [数组 Spreads](#es6- array- spreads)
1925
+ 1. [Let 及 Const](#references)
1926
+ 1. [迭代器和生成器 ](#iterators- and- generators)
1927
+ 1. [模块 ](#modules)
1926
1928
1927
1929
** [⬆ 返回目录](#table- of - contents)**
1928
1930
@@ -1949,53 +1951,54 @@ ES5 的编码规范请查看[版本一](https://github.com/sivan/javascript-styl
1949
1951
- [jQuery Find vs Context, Selector](http: // jsperf.com/jquery-find-vs-context-sel/13)
1950
1952
- [innerHTML vs textContent for script text](http: // jsperf.com/innerhtml-vs-textcontent-for-script-text)
1951
1953
- [Long String Concatenation](http: // jsperf.com/ya-string-concat)
1952
- - Loading...
1954
+ - [Are Javascript functions like ` map()` , ` reduce()` , and ` filter()` optimized for traversing arrays? ](https: // www.quora.com/JavaScript-programming-language-Are-Javascript-functions-like-map-reduce-and-filter-already-optimized-for-traversing-array/answer/Quildreen-Motta)
1955
+ - 等等...
1953
1956
1954
1957
** [⬆ 返回目录](#table- of - contents)**
1955
1958
1956
1959
< a name= " resources" >< / a>
1957
- ## 资源
1960
+ ## 相关资源(英文)
1958
1961
1959
- ** Learning ES6 **
1962
+ ** 了解 ES6 **
1960
1963
1961
- - [Draft ECMA 2015 (ES6 ) Spec ](https: // people.mozilla.org/~jorendorff/es6-draft.html)
1964
+ - [ECMA 2015 (ES6 ) 规范草案 ](https: // people.mozilla.org/~jorendorff/es6-draft.html)
1962
1965
- [ExploringJS](http: // exploringjs.com/)
1963
- - [ES6 Compatibility Table ](https: // kangax.github.io/compat-table/es6/)
1964
- - [Comprehensive Overview of ES6 Features ](http: // es6-features.org/)
1966
+ - [ES6 兼容性表 ](https: // kangax.github.io/compat-table/es6/)
1967
+ - [ES6 特性全面概况 ](http: // es6-features.org/)
1965
1968
1966
- ** Read This **
1969
+ ** 看看这个 **
1967
1970
1968
1971
- [Annotated ECMAScript 5.1 ](http: // es5.github.com/)
1969
1972
1970
- ** Tools **
1973
+ ** 工具 **
1971
1974
1972
- - Code Style Linters
1975
+ - 代码风格检查器(Lint)
1973
1976
+ [ESlint](http: // eslint.org/) - [Airbnb Style .eslintrc](https://github.com/airbnb/javascript/blob/master/linters/.eslintrc)
1974
1977
+ [JSHint](http: // www.jshint.com/) - [Airbnb Style .jshintrc](https://github.com/airbnb/javascript/blob/master/linters/jshintrc)
1975
1978
+ [JSCS ](https: // github.com/jscs-dev/node-jscs) - [Airbnb Style Preset](https://github.com/jscs-dev/node-jscs/blob/master/presets/airbnb.json)
1976
1979
1977
- ** Other Styleguides **
1980
+ ** 其他风格指南 **
1978
1981
1979
1982
- [Google JavaScript Style Guide](http: // google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml)
1980
1983
- [jQuery Core Style Guidelines](http: // docs.jquery.com/JQuery_Core_Style_Guidelines)
1981
1984
- [Principles of Writing Consistent, Idiomatic JavaScript](https: // github.com/rwldrn/idiomatic.js/)
1982
1985
1983
- ** Other Styles **
1986
+ ** 其他风格 **
1984
1987
1985
1988
- [Naming this in nested functions](https: // gist.github.com/4135065) - Christian Johansen
1986
1989
- [Conditional Callbacks](https: // github.com/airbnb/javascript/issues/52) - Ross Allen
1987
1990
- [Popular JavaScript Coding Conventions on Github](http: // sideeffect.kr/popularconvention/#javascript) - JeongHoon Byun
1988
1991
- [Multiple var statements in JavaScript, not superfluous](http: // benalman.com/news/2012/05/multiple-var-statements-javascript/) - Ben Alman
1989
1992
1990
- ** Further Reading **
1993
+ ** 拓展阅读 **
1991
1994
1992
1995
- [Understanding JavaScript Closures](http: // javascriptweblog.wordpress.com/2010/10/25/understanding-javascript-closures/) - Angus Croll
1993
1996
- [Basic JavaScript for the impatient programmer](http: // www.2ality.com/2013/06/basic-javascript.html) - Dr. Axel Rauschmayer
1994
1997
- [You Might Not Need jQuery](http: // youmightnotneedjquery.com/) - Zack Bloom & Adam Schwartz
1995
1998
- [ES6 Features](https: // github.com/lukehoban/es6features) - Luke Hoban
1996
1999
- [Frontend Guidelines](https: // github.com/bendc/frontend-guidelines) - Benjamin De Cock
1997
2000
1998
- ** Books **
2001
+ ** 书籍 **
1999
2002
2000
2003
- [JavaScript: The Good Parts](http: // www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742) - Douglas Crockford
2001
2004
- [JavaScript Patterns](http: // www.amazon.com/JavaScript-Patterns-Stoyan-Stefanov/dp/0596806752) - Stoyan Stefanov
@@ -2013,7 +2016,7 @@ ES5 的编码规范请查看[版本一](https://github.com/sivan/javascript-styl
2013
2016
- [Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript](http: // amzn.com/0321812182) - David Herman
2014
2017
- [Eloquent JavaScript](http: // eloquentjavascript.net/) - Marijn Haverbeke
2015
2018
2016
- ** Blogs **
2019
+ ** 博客 **
2017
2020
2018
2021
- [DailyJS](http: // dailyjs.com/)
2019
2022
- [JavaScript Weekly](http: // javascriptweekly.com/)
@@ -2027,64 +2030,100 @@ ES5 的编码规范请查看[版本一](https://github.com/sivan/javascript-styl
2027
2030
- [Dustin Diaz](http: // dustindiaz.com/)
2028
2031
- [nettuts](http: // net.tutsplus.com/?s=javascript)
2029
2032
2030
- ** Podcasts **
2033
+ ** 播客 **
2031
2034
2032
2035
- [JavaScript Jabber](http: // devchat.tv/js-jabber/)
2033
2036
2034
2037
2035
2038
** [⬆ 返回目录](#table- of - contents)**
2036
2039
2037
2040
< a name= " in-the-wild" >< / a>
2038
- ## 使用人群
2041
+ ## 使用情况
2039
2042
2040
- This is a list of organizations that are using this style guide . Send us a pull request or open an issue and we ' ll add you to the list.
2043
+ 下列组织应用这份风格指南。
2041
2044
2045
+ - ** 3blades ** : [3Blades / javascript](https: // github.com/3blades/javascript)
2046
+ - ** 4Catalyzer ** : [4Catalyzer / javascript](https: // github.com/4Catalyzer/javascript)
2042
2047
- ** Aan Zee** : [AanZee/ javascript](https: // github.com/AanZee/javascript)
2043
2048
- ** Adult Swim** : [adult- swim/ javascript](https: // github.com/adult-swim/javascript)
2044
2049
- ** Airbnb** : [airbnb/ javascript](https: // github.com/airbnb/javascript)
2045
- - **American Insitutes for Research **: [AIRAST /javascript](https://github.com/AIRAST /javascript)
2050
+ - ** AltSchool ** : [AltSchool / javascript](https: // github.com/AltSchool /javascript)
2046
2051
- ** Apartmint** : [apartmint/ javascript](https: // github.com/apartmint/javascript)
2052
+ - ** Ascribe** : [ascribe/ javascript](https: // github.com/ascribe/javascript)
2047
2053
- ** Avalara** : [avalara/ javascript](https: // github.com/avalara/javascript)
2054
+ - ** Avant** : [avantcredit/ javascript](https: // github.com/avantcredit/javascript)
2055
+ - ** Axept** : [axept/ javascript](https: // github.com/axept/javascript)
2056
+ - ** BashPros** : [BashPros/ javascript](https: // github.com/BashPros/javascript)
2048
2057
- ** Billabong** : [billabong/ javascript](https: // github.com/billabong/javascript)
2058
+ - ** Bisk** : [bisk/ javascript](https: // github.com/Bisk/javascript/)
2059
+ - ** Bonhomme** : [bonhommeparis/ javascript](https: // github.com/bonhommeparis/javascript)
2060
+ - ** Brainshark** : [brainshark/ javascript](https: // github.com/brainshark/javascript)
2061
+ - ** CaseNine** : [CaseNine/ javascript](https: // github.com/CaseNine/javascript)
2062
+ - ** Chartboost** : [ChartBoost/ javascript- style- guide](https: // github.com/ChartBoost/javascript-style-guide)
2063
+ - ** ComparaOnline** : [comparaonline/ javascript](https: // github.com/comparaonline/javascript-style-guide)
2049
2064
- ** Compass Learning** : [compasslearning/ javascript- style- guide](https: // github.com/compasslearning/javascript-style-guide)
2050
2065
- ** DailyMotion** : [dailymotion/ javascript](https: // github.com/dailymotion/javascript)
2066
+ - ** DoSomething** : [DoSomething/ eslint- config](https: // github.com/DoSomething/eslint-config)
2051
2067
- ** Digitpaint** [digitpaint/ javascript](https: // github.com/digitpaint/javascript)
2068
+ - ** Ecosia** : [ecosia/ javascript](https: // github.com/ecosia/javascript)
2052
2069
- ** Evernote** : [evernote/ javascript- style- guide](https: // github.com/evernote/javascript-style-guide)
2070
+ - ** Evolution Gaming** : [evolution- gaming/ javascript](https: // github.com/evolution-gaming/javascript)
2071
+ - ** EvozonJs** : [evozonjs/ javascript](https: // github.com/evozonjs/javascript)
2053
2072
- ** ExactTarget** : [ExactTarget/ javascript](https: // github.com/ExactTarget/javascript)
2054
2073
- ** Expensify** [Expensify/ Style- Guide](https: // github.com/Expensify/Style-Guide/blob/master/javascript.md)
2055
2074
- ** Flexberry** : [Flexberry/ javascript- style- guide](https: // github.com/Flexberry/javascript-style-guide)
2056
2075
- ** Gawker Media** : [gawkermedia/ javascript](https: // github.com/gawkermedia/javascript)
2057
- - **GeneralElectric**: [GeneralElectric/javascript](https://github.com/GeneralElectric/javascript)
2076
+ - ** General Electric** : [GeneralElectric/ javascript](https: // github.com/GeneralElectric/javascript)
2077
+ - ** Generation Tux** : [GenerationTux/ javascript](https: // github.com/generationtux/styleguide)
2058
2078
- ** GoodData** : [gooddata/ gdc- js- style](https: // github.com/gooddata/gdc-js-style)
2059
2079
- ** Grooveshark** : [grooveshark/ javascript](https: // github.com/grooveshark/javascript)
2060
- - **How About We**: [howaboutwe/javascript](https://github.com/howaboutwe/javascript)
2061
- - **InfoJobs**: [InfoJobs/JavaScript-Style-Guide](https://github.com/InfoJobs/JavaScript-Style-Guide)
2062
- - **Intent Media**: [intentmedia/javascript](https://github.com/intentmedia/javascript)
2080
+ - ** Honey** : [honeyscience/ javascript](https: // github.com/honeyscience/javascript)
2081
+ - ** How About We** : [howaboutwe/ javascript](https: // github.com/howaboutwe/javascript-style-guide)
2082
+ - ** Huballin** : [huballin/ javascript](https: // github.com/huballin/javascript)
2083
+ - ** HubSpot** : [HubSpot/ javascript](https: // github.com/HubSpot/javascript)
2084
+ - ** Hyper** : [hyperoslo/ javascript- playbook](https: // github.com/hyperoslo/javascript-playbook/blob/master/style.md)
2085
+ - ** InterCity Group** : [intercitygroup/ javascript- style- guide](https: // github.com/intercitygroup/javascript-style-guide)
2063
2086
- ** Jam3** : [Jam3/ Javascript- Code- Conventions](https: // github.com/Jam3/Javascript-Code-Conventions)
2087
+ - ** JeopardyBot** : [kesne/ jeopardy- bot](https: // github.com/kesne/jeopardy-bot/blob/master/STYLEGUIDE.md)
2064
2088
- ** JSSolutions** : [JSSolutions/ javascript](https: // github.com/JSSolutions/javascript)
2065
- - **Kinetica Solutions**: [kinetica/javascript](https://github.com/kinetica/javascript)
2089
+ - ** KickorStick** : [kickorstick/ javascript](https: // github.com/kickorstick/javascript)
2090
+ - ** Kinetica Solutions** : [kinetica/ javascript](https: // github.com/kinetica/Javascript-style-guide)
2091
+ - ** Lonely Planet** : [lonelyplanet/ javascript](https: // github.com/lonelyplanet/javascript)
2092
+ - ** M2GEN ** : [M2GEN / javascript](https: // github.com/M2GEN/javascript)
2066
2093
- ** Mighty Spring** : [mightyspring/ javascript](https: // github.com/mightyspring/javascript)
2067
2094
- ** MinnPost** : [MinnPost/ javascript](https: // github.com/MinnPost/javascript)
2095
+ - ** MitocGroup** : [MitocGroup/ javascript](https: // github.com/MitocGroup/javascript)
2068
2096
- ** ModCloth** : [modcloth/ javascript](https: // github.com/modcloth/javascript)
2069
2097
- ** Money Advice Service** : [moneyadviceservice/ javascript](https: // github.com/moneyadviceservice/javascript)
2070
2098
- ** Muber** : [muber/ javascript](https: // github.com/muber/javascript)
2071
2099
- ** National Geographic** : [natgeo/ javascript](https: // github.com/natgeo/javascript)
2072
- - **National Park Service**: [nationalparkservice/javascript](https://github.com/nationalparkservice/javascript)
2073
2100
- ** Nimbl3** : [nimbl3/ javascript](https: // github.com/nimbl3/javascript)
2101
+ - ** Nulogy** : [nulogy/ javascript](https: // github.com/nulogy/javascript)
2102
+ - ** Orange Hill Development** : [orangehill/ javascript](https: // github.com/orangehill/javascript)
2074
2103
- ** Orion Health** : [orionhealth/ javascript](https: // github.com/orionhealth/javascript)
2104
+ - ** OutBoxSoft** : [OutBoxSoft/ javascript](https: // github.com/OutBoxSoft/javascript)
2075
2105
- ** Peerby** : [Peerby/ javascript](https: // github.com/Peerby/javascript)
2076
2106
- ** Razorfish** : [razorfish/ javascript- style- guide](https: // github.com/razorfish/javascript-style-guide)
2077
2107
- ** reddit** : [reddit/ styleguide/ javascript](https: // github.com/reddit/styleguide/tree/master/javascript)
2078
- - **REI**: [reidev/js-style-guide](https://github.com/reidev/js-style-guide)
2108
+ - ** React** : [facebook .github .io / react/ contributing/ how- to- contribute .html #style- guide](https: // facebook.github.io/react/contributing/how-to-contribute.html#style-guide)
2109
+ - ** REI ** : [reidev/ js- style- guide](https: // github.com/rei/code-style-guides/blob/master/docs/javascript.md)
2079
2110
- ** Ripple** : [ripple/ javascript- style- guide](https: // github.com/ripple/javascript-style-guide)
2080
2111
- ** SeekingAlpha** : [seekingalpha/ javascript- style- guide](https: // github.com/seekingalpha/javascript-style-guide)
2081
2112
- ** Shutterfly** : [shutterfly/ javascript](https: // github.com/shutterfly/javascript)
2082
- - **StudentSphere**: [studentsphere/javascript](https://github.com/studentsphere/javascript)
2113
+ - ** Sourcetoad** : [sourcetoad/ javascript](https: // github.com/sourcetoad/javascript)
2114
+ - ** Springload** : [springload/ javascript](https: // github.com/springload/javascript)
2115
+ - ** StratoDem Analytics** : [stratodem/ javascript](https: // github.com/stratodem/javascript)
2116
+ - ** SteelKiwi Development** : [steelkiwi/ javascript](https: // github.com/steelkiwi/javascript)
2117
+ - ** StudentSphere** : [studentsphere/ javascript](https: // github.com/studentsphere/guide-javascript)
2118
+ - ** SwoopApp** : [swoopapp/ javascript](https: // github.com/swoopapp/javascript)
2119
+ - ** SysGarage** : [sysgarage/ javascript- style- guide](https: // github.com/sysgarage/javascript-style-guide)
2120
+ - ** Syzygy Warsaw** : [syzygypl/ javascript](https: // github.com/syzygypl/javascript)
2083
2121
- ** Target** : [target/ javascript](https: // github.com/target/javascript)
2084
2122
- ** TheLadders** : [TheLadders/ javascript](https: // github.com/TheLadders/javascript)
2123
+ - ** The Nerdery** : [thenerdery/ javascript- standards](https: // github.com/thenerdery/javascript-standards)
2085
2124
- ** T4R Technology** : [T4R - Technology/ javascript](https: // github.com/T4R-Technology/javascript)
2086
- - **Userify**: [userify/javascript](https://github.com/userify/javascript)
2087
2125
- ** VoxFeed** : [VoxFeed/ javascript- style- guide](https: // github.com/VoxFeed/javascript-style-guide)
2126
+ - ** WeBox Studio** : [weboxstudio/ javascript](https: // github.com/weboxstudio/javascript)
2088
2127
- ** Weggo** : [Weggo/ javascript](https: // github.com/Weggo/javascript)
2089
2128
- ** Zillow** : [zillow/ javascript](https: // github.com/zillow/javascript)
2090
2129
- ** ZocDoc** : [ZocDoc/ javascript](https: // github.com/ZocDoc/javascript)
@@ -2094,7 +2133,7 @@ ES5 的编码规范请查看[版本一](https://github.com/sivan/javascript-styl
2094
2133
< a name= " translation" >< / a>
2095
2134
## 翻译
2096
2135
2097
- This style guide is also available in other languages:
2136
+ 这份风格指南也有其他语言的译本:
2098
2137
2099
2138
- ! [br](https: // raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Brazil.png) **Brazilian Portuguese**: [armoucar/javascript-style-guide](https://github.com/armoucar/javascript-style-guide)
2100
2139
- ! [bg](https: // raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Bulgaria.png) **Bulgarian**: [borislavvv/javascript](https://github.com/borislavvv/javascript)
@@ -2117,16 +2156,17 @@ ES5 的编码规范请查看[版本一](https://github.com/sivan/javascript-styl
2117
2156
- [Reference](https: // github.com/airbnb/javascript/wiki/The-JavaScript-Style-Guide-Guide)
2118
2157
2119
2158
< a name= " chat-with-us-about-javascript" >< / a>
2120
- ## 一起来讨论 JavaScript
2159
+ ## 讨论 JavaScript
2121
2160
2122
- - Find us on [gitter](https://gitter.im/airbnb/javascript).
2161
+ - 欢迎到 [gitter](https: // gitter.im/airbnb/javascript) 与我们聊天(英文)。
2123
2162
2124
- ## Contributors
2163
+ ## 贡献者
2125
2164
2126
- - [View Contributors](https://github.com/airbnb/javascript/graphs/contributors)
2165
+ - [查看原始项目贡献者](https: // github.com/airbnb/javascript/graphs/contributors)
2166
+ - [查看简中翻译贡献者](https: // github.com/yuche/javascript/graphs/contributors)
2127
2167
2128
2168
2129
- ## License
2169
+ ## 许可协议
2130
2170
2131
2171
(The MIT License)
2132
2172
@@ -2153,4 +2193,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2153
2193
2154
2194
** [⬆ 返回目录](#table- of - contents)**
2155
2195
2196
+ ## 修订
2197
+
2198
+ 我们鼓励您派生本指南和更改规则以适应您的团队需求。您可以在下方列出对本风格指南的修改,以便定期更新本指南而无需处理合并冲突。
2199
+
2156
2200
# };
0 commit comments