Jake Teton-Landis
8d51bd504b
Switch from single var to one-var-per-variable
...
Frontenders at Airbnb at have been discussing this change for a bit, and
we've come to favor one-var-per-variable over one-var-only declarations.
Two things improve the maintainability of this style over one var for
multiple variables:
1. You never have a diff of a line that's removing a `;` and inserting
a `,`.
2. You can't accidentally declare global variables because you have a
one-character mistake (semicolon instead of comma):
```javascript
var foo = 1,
bar = 2;
baz = 3; // added later and (accidentally) declared globally
```
2014-12-01 14:20:22 -08:00
Allan Bettarel
7f393a4120
Update README.md
...
Add StudentSphere in the list
2014-11-26 12:29:20 -05:00
Harrison Shoff
a224d0a156
[chat] add gitter badge
2014-11-16 20:06:19 -08:00
Harrison Shoff
b2357ce19a
[translations] use bigger, shinier flags
2014-11-16 20:05:13 -08:00
Harrison Shoff
4b24cc1c25
[translations] use gosquared flags for consistency
2014-11-16 19:59:48 -08:00
Maciej Jurczyk
90f3dc357f
Also the flag of the Portugal was missing
2014-11-15 00:45:20 +01:00
Maciej Jurczyk
2522afab5d
Also fixed Bulgarian flag icon
2014-11-15 00:43:30 +01:00
Maciej Jurczyk
da9103f11b
Fixed flag icon
2014-11-15 00:41:53 +01:00
Maciej Jurczyk
058e9adce3
Added a link to the translated tutorial
2014-11-15 00:33:44 +01:00
Harrison Shoff
d14b219b8a
[chat] add gitter badge
2014-11-12 17:03:37 +00:00
Harrison Shoff
0baa1054ed
[chat] add link to gitter, come chat with us about js
2014-11-12 16:56:56 +00:00
Joseandro Luiz
d4f2668784
Included Weggo as one of the style guide users
2014-11-03 14:13:53 +01:00
Harrison Shoff
ef4420bfa0
[in the wild] add InfoJobs. fixes #203
2014-10-29 00:17:44 -07:00
Harrison Shoff
21a44a7627
[in the wild] add Target
2014-10-29 00:15:03 -07:00
Sebastian Rönnlund
6cbf79a6e7
Added missing semicolon.
2014-10-27 21:27:07 +01:00
Francesc Puig
a02795efda
Catalan: added new translation
...
Update the translations section with a new translation that is in development.
2014-10-02 16:40:30 +02:00
Andrew Teich
aaf2f2e24b
Added author to Conditional Callbacks
...
On Line 1446, gave credit to Ross Allen who wrote Conditional Callbacks
2014-09-22 17:36:28 -07:00
Jose Joaquin Merino
6161375094
Added author in: Other Styles
...
JeongHoon Byun (https://github.com/outsideris ) created the website that this repo links to.
2014-09-22 12:35:31 -07:00
Alexander Jeng
cdb49a3478
Added author for JSBooks
2014-09-21 21:31:18 -07:00
Harrison Shoff
e0917c8023
[resources] add clarity to new tools section
2014-09-19 11:52:54 -07:00
Harrison Shoff
e7c2997b3c
[resources] add tools section, include JSHint & JSCS
2014-09-19 11:42:07 -07:00
Harrison Shoff
38fd77e159
[in the wild] add Evernote. fixes #193
2014-09-08 10:42:50 -07:00
Harrison Shoff
b81a740241
[in the wild] add VoxFeed. fixes #192
2014-09-08 10:41:36 -07:00
Justin Soliz
e46091bf44
Adding Avalara to list of orgs
2014-09-08 10:11:29 -07:00
Harrison Shoff
b756073522
[resources] add link to 'multiple var statements' in other styles
2014-08-13 18:06:26 -07:00
Adrian Bruinhout
cccf3644b1
Adding Intent Media to the list of companies
2014-08-05 12:16:53 -04:00
Francis Plaza
0c36235c35
Added Muber to the list of organizations using this styleguide
2014-06-29 13:09:51 -04:00
Harrison Shoff
3187ab6c86
Merge pull request #164 from orionhealth/comment-lead-semi-colon-iife
...
Justify using a leading semi colon before an IIFE.
2014-06-20 16:39:36 -07:00
John Mumm
214bf78ea8
Add TheLadders to the list of organizations that forked this style guide
2014-06-16 09:50:25 -04:00
Rahul Doshi
2895ae0e57
Add DailyMotion to the list of organizations that are using this style guide
2014-06-12 09:10:06 -07:00
Harrison Shoff
0a58fc75de
[naming conventions] add note about NFEs, IE8 and below. fixes #82
2014-06-06 18:15:59 -07:00
Harrison Shoff
2d9759484c
Merge pull request #126 from Jabher/patch-1
...
32-bit integers and bitwise operators explained with example of issues
2014-06-06 18:08:34 -07:00
Robert Djurasaj
12df1f50f9
Remove ; from function endings
2014-06-05 11:03:11 -06:00
Joe Pettersson
1c3e0c8817
Add syntax highlighting to noConflict reference
2014-05-23 12:20:24 +01:00
Max Goodman
8189d6cc58
Clarify single newlines at the end of files.
2014-05-13 15:56:12 -07:00
Harrison Shoff
b138d89d7b
[in the wild] Reddit => reddit
2014-05-07 12:36:56 -07:00
Jack Lawson
a3a0af93ed
Add Reddit to list of companies.
2014-05-06 12:18:44 -07:00
James Bunt
6288faf3dc
Add Orion Health to the list of companies in the README.
2014-04-24 14:43:03 +12:00
James Bunt
1a6d308209
Add justification and some further reading on using a leading semi colon before an IIFE to the Semicolons section.
2014-04-24 14:39:15 +12:00
Harrison Shoff
731ae106bc
Merge pull request #156 from ripple/master
...
Add Ripple to list of projects using this style guide
2014-04-14 23:13:11 -07:00
Harrison Shoff
9cc84ec92a
Merge pull request #152 from goldcaddy77/multi-line-use-80
...
Use 80 chars for consistency with comment above
2014-03-27 11:37:50 -07:00
Dan Caddigan
2737916365
Use 80 chars for consistency with comment above
2014-03-25 13:08:33 -04:00
Dan Caddigan
12baae728e
Fix typo with word programatically
2014-03-25 13:02:27 -04:00
Juan Lulkin
f59724185a
Add SeekingAlpha to companies in the README
2014-03-20 21:09:20 +02:00
Juan Lulkin
edfab47de0
Update README.md to add SeekingAlpha
2014-03-20 21:06:13 +02:00
Stefan Thomas
fee185379a
Add Ripple to list of projects using this style guide.
2014-03-17 13:55:51 -07:00
Koen Punt
fb86fc032d
TOC links updated
2014-03-16 16:10:41 +01:00
Koen Punt
c3a9c7f741
Rely on github's default heading anchors
2014-03-16 15:37:48 +01:00
Flurin Egger
c4d7cc0a21
Add Digitpaint to list of organisations using this style guide
2014-03-13 11:45:50 +01:00
Harrison Shoff
8c01bc4aa8
[resources] add link to es6 features
2014-03-04 09:23:44 -08:00