Skip to content

Conversation

@thechenky
Copy link
Contributor

Description

Continuation of lint fixes now in spec/providers directory.

@thechenky thechenky requested review from joehan and kevinajian June 13, 2019 06:01
const cloudFunction = analytics
.event('first_open')
.onLog((data: analytics.AnalyticsEvent) => data);
.onLog((event: analytics.AnalyticsEvent) => event);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the other ones also be changed to event?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I was renaming this specific instance because of a shadowed variable down lower that is also called data. Event providers should all take in (data, context), here it looks we're just cutting some corners by not passing two arguments, which I think makes things more confusing. Since this is this is the first argument I'm actually reconsidering naming this data and changing the other var to something else.

@thechenky thechenky merged commit 1ccd569 into master Jun 14, 2019
@thechenky thechenky deleted the dt-lint-spec-providers branch June 15, 2019 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants