Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1023 Bytes

no-capital-letters-in-routes.md

File metadata and controls

35 lines (22 loc) · 1023 Bytes

ember/no-capital-letters-in-routes

💼 This rule is enabled in the ✅ recommended config.

Raise an error when there is a route with upper-cased letters in router.js.

When you accidentally uppercase any of your routes or create upper-cased 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.

Examples

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');

References

Related Rules