Review Board makes heavy use of JavaScript for the front-end. To keep consistent, we have a set of guidelines and information on how our JavaScript is organized, styled, and built.

If you’re new to the codebase, please get familiar with our stack to learn how it all fits together:

JavaScript Stack

When writing code, make sure you follow our guidelines:

TypeScript, ES6 and Compatibility

Review Board's JavaScript codebase uses a mix of TypeScript and ES6 syntax (mostly). We transpile our JavaScript using Babel, which allows us to remain compatible with older browsers.

TypeScript files must end in .ts and ES6 files must end in a .es6.js in order to be run through Babel.

We have strict rules and guidelines around the ES6 capabilities that we allow in our code. This has its own document See:

JavaScript Coding Style Guide

JavaScript ES6 Guidelines