Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 514 Bytes

no-shadow-route-definition.md

File metadata and controls

22 lines (14 loc) · 514 Bytes

no-shadow-route-definition

✅ The "extends": "plugin:ember/recommended" property in a configuration file enables this rule.

Enforce no route path definition shadowing in Router.

Rule Details

This rule disallows defining shadowing route definitions.

Examples

Examples of incorrect code for this rule:

this.route('main', { path: '/' }, function () {
  this.route('nested');
});
this.route('nested');

In this example from Router perspective both nested routes are on URL /nested.