-
Notifications
You must be signed in to change notification settings - Fork 12
JavaScript: General
Zander Martineau edited this page May 15, 2017
·
1 revision
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.
Use const
wherever possible.
Write unit tests.
jQuery should only be added in the most exceptional circumstances when absolutely necessary or when explicitly requested by a client.