Home

Awesome

원문:https://github.com/airbnb/javascript

Airbnb JavaScript 스타일 가이드() {

JavaScript에 대한 대부분 합리적인 접근 방법

다른 스타일 가이드들

목차

  1. 형(Types)
  2. 참조(References)
  3. 오브젝트(Objects)
  4. 배열(Arrays)
  5. 구조화대입(Destructuring)
  6. 문자열(Strings)
  7. 함수(Functions)
  8. Arrow함수(Arrow Functions)
  9. Classes & Constructors
  10. 모듈(Modules)
  11. 이터레이터와 제너레이터(Iterators and Generators)
  12. 프로퍼티(Properties)
  13. 변수(Variables)
  14. Hoisting
  15. 조건식과 등가식(Comparison Operators & Equality)
  16. 블록(Blocks)
  17. 코멘트(Comments)
  18. 공백(Whitespace)
  19. 콤마(Commas)
  20. 세미콜론(Semicolons)
  21. 형변환과 강제(Type Casting & Coercion)
  22. 명명규칙(Naming Conventions)
  23. 억세서(Accessors)
  24. 이벤트(Events)
  25. jQuery
  26. ECMAScript 5 Compatibility
  27. ECMAScript 6 Styles
  28. Testing
  29. Performance
  30. Resources
  31. In the Wild
  32. Translation
  33. The JavaScript Style Guide Guide
  34. Chat With Us About JavaScript
  35. Contributors
  36. License

형(Types)

⬆ back to top

참조(References)

⬆ back to top

오브젝트(Objects)

<a name="es6-computed-properties"></a>

<a name="es6-object-shorthand"></a>

<a name="es6-object-concise"></a>

⬆ back to top

배열(Arrays)

<a name="es6-array-spreads"></a>

⬆ back to top

구조화대입(Destructuring)

⬆ back to top

문자열(Strings)

<a name="es6-template-literals"></a>

⬆ back to top

함수(Functions)

<a name="es6-rest"></a>

<a name="es6-default-parameters"></a>

⬆ back to top

Arrow함수(Arrow Functions)

⬆ back to top

Classes & Constructors

⬆ back to top

모듈(Modules)

⬆ back to top

이터레이터와 제너레이터(Iterators and Generators)

⬆ back to top

프로퍼티(Properties)

⬆ back to top

변수(Variables)

⬆ back to top

Hoisting

⬆ back to top

조건식과 등가식(Comparison Operators & Equality)

⬆ back to top

블록(Blocks)

⬆ back to top

코멘트(Comments)

⬆ back to top

공백(Whitespace)

⬆ back to top

콤마(Commas)

⬆ back to top

세미콜론(Semicolons)

⬆ back to top

형변환과 강제(Type Casting & Coercion)

⬆ back to top

명명규칙(Naming Conventions)

⬆ back to top

억세서(Accessors)

⬆ back to top

이벤트(Events)

⬆ back to top

jQuery

⬆ back to top

ECMAScript 5 Compatibility

⬆ back to top

ECMAScript 6 Styles

  1. Arrow Functions
  2. Classes
  3. Object Shorthand
  4. Object Concise
  5. Object Computed Properties
  6. Template Strings
  7. Destructuring
  8. Default Parameters
  9. Rest
  10. Array Spreads
  11. Let and Const
  12. Iterators and Generators
  13. Modules

⬆ back to top

Testing

⬆ back to top

Performance

⬆ back to top

Resources

Learning ES6

Read This

Tools

Other Style Guides

Other Styles

Further Reading

Books

Blogs

Podcasts

⬆ back to top

In the Wild

This is a list of organizations that are using this style guide. Send us a pull request and we'll add you to the list.

⬆ back to top

Translation

This style guide is also available in other languages:

The JavaScript Style Guide Guide

Chat With Us About JavaScript

Contributors

License

(The MIT License)

Copyright (c) 2014 Airbnb

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

⬆ back to top

Amendments

We encourage you to fork this guide and change the rules to fit your team's style guide. Below, you may list some amendments to the style guide. This allows you to periodically update your style guide without having to deal with merge conflicts.

};