Skip to content

Fix @typescript-eslint/unbound-method by using class property arrow.#359

Merged
proxi merged 1 commit intodevfrom
proxi/unbound-method
Jan 4, 2021
Merged

Fix @typescript-eslint/unbound-method by using class property arrow.#359
proxi merged 1 commit intodevfrom
proxi/unbound-method

Conversation

@proxi
Copy link
Member

@proxi proxi commented Oct 14, 2020

Short description

Fix @typescript-eslint/unbound-method rule violations and re-enable the rule in preparation to adopt shared eslint-config. For context, see discussion in here.

The fix uses class property syntax. I know we've had some problems with transpiling it in other projects, so please double-check it's ok. I've run the tests and stories and checked output in es directory.

PR Checklist

  • Executed npm run validate and made sure no errors / warnings were shown
  • Updated all static build artifacts (npm run build-all)

Versioning

It only affects internals and does not require release of its own.

@proxi proxi requested a review from a team October 14, 2020 11:18
@gnapse
Copy link
Contributor

gnapse commented Oct 14, 2020

we've had some problems with transpiling it in other projects, so please double-check it's ok.

For this reason I request that we do not merge it right now. I'm about to perform a release soon and would like more time to check this change locally against both Todoist and Twist.

@proxi
Copy link
Member Author

proxi commented Oct 14, 2020

@gnapse Makes sense, please merge it when you find it convenient.

@proxi
Copy link
Member Author

proxi commented Oct 14, 2020

We could also consider ignoring existing occurrences, but given it's only few and that it sometimes produces real issues (we have one or two in twist-web) I think cleanup makes sense.

@gnapse
Copy link
Contributor

gnapse commented Oct 14, 2020

I added a task for myself to not loose track of this. Will come back to it after I release #356.

@proxi proxi force-pushed the proxi/unbound-method branch from 868c208 to 4c754ef Compare October 19, 2020 09:56
@proxi proxi force-pushed the proxi/unbound-method branch from 4c754ef to 34ebeae Compare January 4, 2021 12:12
@proxi
Copy link
Member Author

proxi commented Jan 4, 2021

@gnapse Can it be merged now?

@proxi proxi merged commit 6647bda into dev Jan 4, 2021
@proxi proxi deleted the proxi/unbound-method branch January 4, 2021 13:27
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