Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 741 Bytes

no-unnecessary-index-route.md

File metadata and controls

33 lines (21 loc) · 741 Bytes

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