You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fabien-d edited this page Dec 2, 2012
·
4 revisions
Alertify Coding Standards are set for all code in the code-base to look like a single person wrote it. This is not to say my style preference is better than another, it's simply to keep the project consistent and easier to read.
Most of the code standards are based on idiomatic.js with a few minor overwrites/differences or project specifics.
Project Specific
Whitespace: Tabs for indentation (spaces to align multiline variables)
1 space between function brackets and operators
Quotes: Double quotes
Single Line Statements: No curly braces for single line statements (code on 1 line not 2)
Whitespace
function(){// tabsvartab;};// spaces to align variablesvara..="",
....ab.="";// spaces between operators and function brackets// yesfunction(){a+b=c;a===b// nofunction(){a+b=c;a===b