Javascript Coding Standards

Javascript Coding Standards

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.

Eintrag von Stephan Hochdörfer am 07.04.2015

Tags: Javascript, Code quality, Code standards

Diese Webseite verwendet Cookies, um die Bedienfreundlichkeit zu erhöhen. Mit der Nutzung unserer Webseite wird das Einverständnis erklärt, dass wir Cookies verwenden. Weitere Informationen.