JavaScript is used in our Customer Web App, on certain interactive pages in Liefery Core (Liefery Backend) and in the Whitelabel Tracking application.
- Write
use strict
at the top of every js file - Whitelabel tracking is written with React, Redux, ES6 and Flow for types. Please refer to the React style guide
- Liefery Core and the Customer Web App are currently written using the Angular framework, and CoffeeScript, a language that compiles to JavaScript.
- All JavaScript code should have a corresponding unit test where possible.
- We use the Jasmine testing framework for these tests and aim for a clean BDD style of test description.