Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 949 Bytes

no-capital-letters-in-routes.md

File metadata and controls

33 lines (21 loc) · 949 Bytes

no-capital-letters-in-routes

✅ The "extends": "plugin:ember/recommended" property in a configuration file enables this rule.

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