ember-suave uses JSCS to ensure that your code conforms to a set of code style rules, and fails your tests if it doesn’t.
JSCS is a code style linter and formatter for your style guide.The cool thing about ember-suave is that it also enforces ember styles not just javascript, for example, it will warn you if you create a property using the property prototype extension. So instead of writing:
You should be writing:
All you have to do to get it running is
By default it uses the dockyard rules preset but you can create your own or customize the current one.
JSCS is a code style linter and formatter for your style guide.The cool thing about ember-suave is that it also enforces ember styles not just javascript, for example, it will warn you if you create a property using the property prototype extension. So instead of writing:
1 2 3 |
fullNameBad: function() { // Code }.property('firstName', 'lastName'), |
You should be writing:
1 2 3 |
fullName: computed('firstName', 'lastName', function() { // Code }) |
All you have to do to get it running is
1 |
ember install ember-suave |
By default it uses the dockyard rules preset but you can create your own or customize the current one.
PS: You will see error messages in your console window where you run your ember server.