Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 800 Bytes

no-unnecessary-route-path-option.md

File metadata and controls

34 lines (22 loc) · 800 Bytes

Disallow unnecessary route path option

Rule name: no-unnecessary-route-path-option

When defining a route, it's not necessary to specify the path option if it matches the route name.

Rule Details

Examples of incorrect code for this rule:

this.route('blog-posts', { path: '/blog-posts' });

Examples of correct code for this rule:

this.route('blog-posts');
this.route('blog-posts', { path: '/blog' });

References

Related Rules