Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 788 Bytes

no-unnecessary-index-route.md

File metadata and controls

35 lines (22 loc) · 788 Bytes

ember/no-unnecessary-index-route

Disallow unnecessary index route definition.

The index route (for the / path) is automatically provided at every level of nesting and does not need to be defined in the router.

Examples

Examples of incorrect code for this rule:

this.route('index');
this.route('index', { path: '/' });

Examples of correct code for this rule:

this.route('blog-posts');

References

Related Rules