Ryan McBride
13fe13bb37
Fixed typo in 13.4
...
A comment in the example of section 13.4 had 'unnecessary' spelled as 'unnessary'
2015-07-04 10:48:44 -07:00
Ryan McBride
4eea06235b
Fixed typo in 9.4
...
Line read `contructor(options = {}) {`
Edited to `constructor(options = {}) {`
No other lines were edited or changed.
2015-07-04 10:36:18 -07:00
Jake Teton-Landis
49f9a56c35
Merge pull request #380 from rodocite/master
...
Added Back to Top link for In The Wild section
2015-07-01 19:48:01 -07:00
Dimitar Danailov
592223611f
Change style guide of point 23.3
2015-07-01 16:22:55 +03:00
Rodolfo Yabut
4a19aa8575
Fix Back to Top link spacing
2015-07-01 06:20:05 -07:00
Rodolfo Yabut
0627472f55
Add Back to Top link
2015-07-01 06:17:56 -07:00
Mathieu Darse
ae84fbe007
Fix typo
2015-06-30 12:40:05 +02:00
Tomek Wiszniewski
ee899996b6
Allow reserved words as keys in ES6 module context
...
`<script type="module">` and *node*/*iojs* code imply full support of ES5.
Code transpiled by *babel* is also perfecly safe:
```js
$ cat <<––– | babel
const superman = {
default: { clark: 'kent' },
private: true
};
–––
"use strict";
var superman = {
"default": { clark: "kent" },
"private": true
};
```
2015-06-25 23:20:00 +02:00
Manoj Kumar
26dd043414
Update README.md
2015-06-23 22:13:05 +05:30
Jake Teton-Landis
8599621c0f
Merge pull request #357 from arianf/trailing-comma
...
added trailing comma
2015-06-19 16:01:09 -07:00
Tim Golen
25a2430dc6
Add Expensify to the list of organizations using this style guide
2015-06-17 13:30:29 -06:00
Harrison Shoff
a872822618
Merge pull request #352 from sivan/master
...
Change Chinese Translation to a newer version
2015-06-17 16:37:35 +01:00
Aniss Bouraba
1429a20c97
update(README.md): added Airbnb Style .eslintrc link
2015-06-17 12:29:48 +01:00
Josh Perez
2a1f4f4a9f
Merge pull request #362 from carterchung/patch-1
...
Added missing period
2015-06-13 23:08:55 -07:00
Carter Chung
a2e235608c
Added bullet/indentation
...
for consistency
2015-06-13 21:56:21 -07:00
Carter Chung
fb45e22b0e
Added missing period
2015-06-13 21:54:29 -07:00
Arian Faurtosh
3946480334
added trailing comma
2015-05-31 20:16:39 -07:00
Sun Xingfan
2539557e98
Change Chinese Translation to a more official like version
...
The current Chinese version translated by adamlu is a modified version which as he said change/delete some rules from the original and it's base on the version 2 years ago. I transalte a new version base on current style guide of es5 version.
2015-05-25 22:15:38 +08:00
Josh Perez
cbcb09f990
Update README.md
2015-05-18 14:40:41 -07:00
Josh Perez
a5704787e4
Amend the arrow function rules
...
This allows one to omit parens whenever it fits into a single line, which is similar to our if statement rules.
2015-05-18 14:09:46 -07:00
Harrison Shoff
43a5f84462
[links] id => name
2015-05-13 18:01:20 -07:00
Harrison Shoff
535c4f73d0
add links to individual rules
2015-05-13 17:49:26 -07:00
Josh Perez
c77a7f19cd
Merge pull request #341 from billabong/spacing_format_fix
...
Fixed spacing on code block under Comments.
2015-05-12 12:09:18 -07:00
Michael Deol
8bc1c17585
Fixed spacing on code block under Comments.
...
Even though github was rendering this correctly; I did this to fix tools
like https://github.com/suan/vim-instant-markdown from breaking syntax.
2015-05-12 11:57:40 -07:00
Michael Deol
27cc9a008c
Addition of Billabong Orginization
2015-05-12 11:37:09 -07:00
Harrison Shoff
871a798a0d
[conditionals] update wording, es5 version
2015-05-07 11:58:16 -07:00
Harrison Shoff
4295803576
[conditionals] use if statement
2015-05-07 11:44:19 -07:00
Harrison Shoff
36ddb36e21
[conditionals] clarify conditionals. fixes #336
2015-05-07 11:35:42 -07:00
Tomek Wiszniewski
a9319691e4
Fix typo
2015-05-05 09:51:00 +02:00
Harrison Shoff
0ffbdd3692
[comments] fix example
2015-04-29 12:26:14 -07:00
Harrison Shoff
2521d46683
[readme] update additional trailing commas, examples
2015-04-29 11:49:28 -07:00
Harrison Shoff
07bba234a0
[readme] update additional trailing commas, examples
2015-04-29 11:48:52 -07:00
Harrison Shoff
7ade95434c
[commas] fix bad git diff example
2015-04-29 10:42:03 -07:00
Harrison Shoff
a2034b0f6c
[commas] additional trailing commas good in es6. fixes #323
2015-04-29 10:39:01 -07:00
Harrison Shoff
a41c1fab68
[intro] our es5 guide is still up to date
2015-04-29 10:07:11 -07:00
Josh Perez
cc460132cc
Learn you some ES6
2015-04-28 21:31:58 -07:00
Josh Perez
cb47b478c7
Amend grammar for default parameters
2015-04-28 21:28:05 -07:00
Herrington Darkholme
d0028724ea
add semicolons
2015-04-28 21:28:05 -07:00
Matias Singers
e5006931f1
Use modules in naming conventions example
...
Following the rule from further up: "Always use modules (import/export) over a non-standard module system."
2015-04-28 21:28:05 -07:00
Tomek Wiszniewski
0cca5e21fc
Fix hoisting examples
...
Hoisting only happens to `var`. As kangax describes in [Why `typeof` is no longer “safe”](http://es-discourse.com/t/why-typeof-is-no-longer-safe/15/3 ).
Also, I wonder if we need the whole section, since you recommend to [avoid using `var` altogether](https://github.com/airbnb/javascript/blob/b492/README.md#references ).
2015-04-28 21:28:05 -07:00
dsc
ee176044c3
Rename two let keywords to const
2015-04-28 21:28:05 -07:00
Harrison Shoff
f7321b303d
[modules] fix invalid syntax in bad example. fixes #287
2015-04-28 21:28:05 -07:00
Harrison Shoff
6d34c516cc
[toc] remove extra modules link
2015-04-28 21:28:05 -07:00
Sean Massa
38ae6b6df2
add bad comment to bad section of destructuring
2015-04-28 21:28:05 -07:00
NoNameSheep
e826067498
advice against side effect in default parameter
2015-04-28 21:28:05 -07:00
Luke Westby
bc5b0ee007
Change wording in Iterators and Generators
...
I found the term "function constructors" to be confusing as the functions the section refers to are not constructors. I think "higher-order functions" or something similar would be more clear.
Thanks!
2015-04-28 21:28:05 -07:00
Josh Perez
22e3c89d04
Removing a few trailing commas
2015-04-28 21:28:05 -07:00
Josh Perez
a6a573e3cc
Use more template literals, s/suffer/blessed with
2015-04-28 21:28:04 -07:00
Casey Jenks
b8fd0438fb
Iterators and Generators: sum should be 15, not 10
2015-04-28 21:27:44 -07:00
Josh Perez
58cdc731f4
Initial ES6 style guide
2015-04-28 21:27:44 -07:00