-
Notifications
You must be signed in to change notification settings - Fork 255
Coding Standards
sindresorhus edited this page Feb 17, 2013
·
7 revisions
Aura Coding Standards are reflective and little different to other open source JS projects such as Node, Underscore, Backbone.
Unless otherwise noted, the zen of it is alterations to the code should be consistent with the current project. The project itself has few specifics, but here are a few:
- 2 spaces for indentation
- Use of multiple
var
declarations (see this discussion and this article) -
'use strict'
with single quotes
To get a general idea of current practices, idiotmatic.js is a good reference. When in doubt, you are free to open an issue and ask.
You can view the current JSHint configuration in the .jshintrc
file.