Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 385 Bytes

use-brace-expansion.md

File metadata and controls

19 lines (14 loc) · 385 Bytes

Use brace expansion

Rule name: use-brace-expansion

This allows much less redundancy and is easier to read.

Note that the dependent keys must be together (without space) for the brace expansion to work.

// Good
fullName: computed('user.{firstName,lastName}', {
  // Code
})

// Bad
fullName: computed('user.firstName', 'user.lastName', {
  // Code
})