eslint-plugin-ember
eslint-plugin-ember copied to clipboard
Forbid accessing this.args in class-body space
bad:
class extends Component {
// non-reactive!
foo = this.args.foo;
}
good:
class extends Component {
// lazy, reactive
get foo() {
return this.args.foo;
}
}
Seems reasonable to me. Might want to discuss a bit more if we want it on by default.