eslint-plugin-ember
Version:
Eslint plugin for Ember.js apps
25 lines (13 loc) • 573 B
Markdown
# 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:
```js
this.route('Home');
this.route('SignUp');
```
Examples of **correct** code for this rule:
```js
this.route('home');
this.route('sign-up');
```