You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This rule would catch the issue that led to the bug in #1118
This rule would lint all macros as well as computed properties and getters for self-referential behavior. It would be applied to classic syntax as well as native syntax.
importComponentfrom'@ember/component';import{computed}from'@ember/object';import{reads}from'@ember/object/computed';exportdefaultMyComponentextendsComponent{// BADgetfoo(){returnthis.foo;}// BAD
@computed('bar')getbar(){returnthis.bar;}// BAD
@computed('not-biz')getbiz(){returnthis.biz;}// BAD
@reads('baz')baz;}
The text was updated successfully, but these errors were encountered:
Seems good, though I'm not 100% sure this belongs in eslint-plugin-ember. It doesn't really seem like an "ember thing", it seems like a generate JavaScript best practice thing...
This rule would catch the issue that led to the bug in #1118
This rule would lint all macros as well as computed properties and getters for self-referential behavior. It would be applied to classic syntax as well as native syntax.
The text was updated successfully, but these errors were encountered: