-
Notifications
You must be signed in to change notification settings - Fork 269
Code Style
Eugenio Romano edited this page Jul 26, 2017
·
16 revisions
The code style is defined in the tslint.json and .editorconfig files.
- 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
- 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