Skip to content

Code Style

Eugenio Romano edited this page Jul 26, 2017 · 16 revisions

The code style is defined in the tslint.json and .editorconfig files.

Events name conventions:

  • Do name events without the prefix on.
  • Do name event handler methods with the prefix on followed by the event name
  • All event names should be verbs and use present tense. For example cancel instead of cancelled

whitespace conventions:

  • leave one whitespace character inside of the import statements' curly braces ("ES6 import/export braces" rule for IntelliJ IDEA)
  • leave one whitespace character after type reference colon ':' ("After type reference colon ':'" rule for IntelliJ IDEA)

May you want to use our yeoman generator to create a new component generator-ng2-alfresco-component

Clone this wiki locally