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

Add catchUnsafeObjects option (default false) to no-get rule to catch foo.get('bar') #913

Merged
merged 1 commit into from Aug 14, 2020
Merged

Add catchUnsafeObjects option (default false) to no-get rule to catch foo.get('bar') #913

merged 1 commit into from Aug 14, 2020

Conversation

bmish
Copy link
Member

@bmish bmish commented Aug 13, 2020

Add option for this who want to catch this situation where we aren't sure if the object is an Ember object.

Before:

foo.get('bar');

After:

foo.bar;

Follow-up to adding catchSafeObjects in #912.

@bmish bmish changed the title Add catchUnsafeObjects option to no-get rule Add catchUnsafeObjects option (default false) to no-get rule to catch foo.get('bar') Aug 13, 2020
@bmish bmish merged commit 66a27a8 into ember-cli:master Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant