Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 765 Bytes

File metadata and controls

33 lines (21 loc) · 765 Bytes

Disallow unnecessary index route definition

Rule name: no-unnecessary-index-route

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

Rule Details

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