💼 This rule is enabled in the ✅ recommended
config.
Volatile computed properties are deprecated as of Ember 3.9.
This rule disallows using volatile computed properties.
Examples of incorrect code for this rule:
const Person = EmberObject.extend({
fullName: computed(function () {
return `${this.firstName} ${this.lastName}`;
}).volatile()
});
Examples of correct code for this rule:
const Person = EmberObject.extend({
// Native getter:
get fullName() {
return `${this.firstName} ${this.lastName}`;
}
});