Skip to content

JavaScript: General

Zander Martineau edited this page May 15, 2017 · 1 revision

ES6, not ES7

Even with Babel transforms, ES7 syntax is still potentially dangerous to use so we should avoid it for now. There have been issues in production caused by early ES7 adoption.

In general, ES6 syntax such as Arrow Functions and Object spread operators should be fine to use, as long as you have Babel configured correctly.

const, let, and var

Use const wherever possible.

Tests

Write unit tests.

jQuery

jQuery should only be added in the most exceptional circumstances when absolutely necessary or when explicitly requested by a client.

Clone this wiki locally