Skip to content

Instantly share code, notes, and snippets.

@mourner
Created November 7, 2012 11:33
Show Gist options
  • Save mourner/4030970 to your computer and use it in GitHub Desktop.
Save mourner/4030970 to your computer and use it in GitHub Desktop.
Whitespace conventions of popular JS libraries

Whitespace Conventions of Popular JS Libraries

Manually sorted by browsing most starred JS projects on GitHub (client-side only, all the Node crowd uses 2 spaces).

2 spaces

  • Backbone
  • Underscore
  • D3
  • Ember.js
  • Angular.js
  • Jasmine
  • Zepto
  • WysiHTML5
  • Mustache.js
  • keymaster.js
  • JSON3
  • Prototype
  • Scriptaculous
  • OpenLayers 3
  • Polymaps

4 spaces

  • Bootstrap
  • HTML5 Boilerplate
  • Impress.js
  • Modernizr
  • Brackets
  • LESS.js
  • Raphael
  • moment.js
  • Knockout
  • RequireJS
  • Mousetrap
  • JSON2
  • HeadJS
  • OpenLayers 2
  • Modest Maps

tabs

  • jQuery
  • jQuery Mobile
  • Three.js
  • jQuery UI
  • reveal.js
  • History.js
  • Respond.js
  • Deck.js
  • Sizzle
  • paper.js
  • Leaflet
@edjafarov
Copy link

2 space guys are just using vim for dev I guess. It feels so natural there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment