Skip to main content

Javascript Coding Standards

This blog post might be outdated!
This blog post was published more than one year ago and might be outdated!
· One min read
Stephan Hochdörfer
Head of IT Business Operations

About two years ago we agreed on dropping our own company-wide code standard (which in fact was none!) in favour of the common standards used in all the programming languages which we use. That's PSR-1 and PSR-2 for PHP projects, the Java Code conventions for our Java projects and the Puppet Language Style Guide for our Puppet cofigurations. For Javascript we were not able to find the one and only standard out there. So once again we had to jump in and create our "own" standard. However, this time we`d like to share it with the world ;)

Head over to Github to have a look at our jscs (Javascript Code Style) configuration as well the jshint configurations we use. For jshint we have several configuration files, a generic one suitable for "most" of our projects plus a slightly different configuration for AngularJS and Sencha applications. Both packages can be consumed via npm. Documentation is lacking, we plan to add it during the next couple of weeks.