JavaScript GuidelinesΒΆ

We use XO.js for checking the quality, linting, and ensuring consistent JS code standards. Its installed via npm as a module and is configured via the package.json file in the root. Your editor probably has a plugin available which will show you when you violate these standards. XO.js is an ESLint wrapper. Its essentially a custom config for ESlint, but simplifies the use as we do not have to maintain/update the standards. This means we do not need to manage an eslintrc file.


Our editors of choice are PhpStorm & ATOM which provide useful plugins to make use of these tools. Check out the Editor Setup section of the docs for more information