Ember / JavaScript Code Standards

Classes

Order of attributes in a class:

  1. services

  2. model

  3. # alphabetical

Prettier

Using front/prettier.config.js:

module.exports = {
  trailingComma: "none",
  tabWidth: 2,
  semi: false,
  singleQuote: false,
  bracketSpacing: true,
  arrowParens: "avoid",
  printWidth: 80
}
npm run prettier
npm run prettier:hbs

Handlebars

Tim is using the following Atom plugin: https://github.com/kandhavivekraj/beautify-handlebars

Tip

You have to manually remove / from <hr/>.