Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing import statement when ember/no-incorrect-computed-macros fixer is run #756

Closed
dcyriller opened this issue Apr 1, 2020 · 0 comments · Fixed by #866
Closed

Missing import statement when ember/no-incorrect-computed-macros fixer is run #756

dcyriller opened this issue Apr 1, 2020 · 0 comments · Fixed by #866
Labels

Comments

@dcyriller
Copy link
Contributor

Hello @bmish - wanted to let you know a small bug we noticed.

Running yarn lint:js --fix with the rule ember/no-incorrect-computed-macros enabled on the following:

import Component from '@ember/component';
import { and } from '@ember/object/computed';

export default Component.extend({
  cp: and('another.prop'),
});

the CP gets correctly fixed but not the import statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants