Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 831 Bytes

routes-segments-snake-case.md

File metadata and controls

31 lines (19 loc) · 831 Bytes

ember/routes-segments-snake-case

💼 This rule is enabled in the ✅ recommended config.

Dynamic segments in routes should use snake case, so Ember doesn't have to do extra serialization in order to resolve promises.

Examples

Examples of incorrect code for this rule:

this.route('tree', { path: ':treeId' });

Examples of correct code for this rule:

this.route('tree', { path: ':tree_id' });

References

Related Rules