Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 573 Bytes

no-capital-letters-in-routes.md

File metadata and controls

24 lines (13 loc) · 573 Bytes

Raise an error when there is a route with uppercased letters in router.js (no-capital-letters-in-routes)

When you accidentally uppercase any of your routes or create uppercased route using ember-cli the application will crash without any clear information what's wrong. This rule makes it more obvious, so you don't have to think about it any more.

Rule Details

Examples of incorrect code for this rule:

this.route('Home');
this.route('SignUp');

Examples of correct code for this rule:

this.route('home');
this.route('sign-up');