Appendix D. JavaScript code quality guide
This style guide aims to provide the ground rules for an application’s JavaScript code, so it’s highly readable and consistent across different developers on a team. The focus is put on quality and coherence across different pieces of your application.
D.1. Module organization
This style guide assumes you’re using a module system such as CommonJS,[1] AMD,[2] ES6 Modules,[3] or any other kind of module system. For a comprehensive introduction to module systems head over to chapter 5; I’ll wait.
1 The CommonJS module specification hosts a wiki page at http://bevacqua.io/bf/commonjs.
2 RequireJS has a comprehensive article on the purpose of AMD at http://bevacqua.io/bf/amd.
3 Getting started with ...
Get JavaScript Application Design now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.