thermondo Developer Handbook
We follow the Airbnb JavaScript style guide. The only difference is that we are using four spaces indentation instead of two, for a better readability.
const
should be uppercase.
But it’s fine to use UPPERCASE for constants on a module level that are
considered configuration variables. The common sense of the developer should
decide this individually.$
prefix for variables that hold jQuery objects or collections.*.spec.js
, for example
some_functionality.spec.js
.specs
directory. In a Django application
this directory should live inside the static/js
or static/appname/js
directory in every app. In a standalone JavaScript application the specs
directory should be placed on the same level as the src
directory.