JavaScript

JavaScript

Made by DeepSource

Disallow unnecessary route path option JS-0809

Bug risk
Minor
Autofix ember

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

Bad Practice

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

Recommended

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