We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This rule stops you from doing things like:
const self = this function foo () { return self.derp() }
It prefers:
const foo = () => { return this.derp() }
Which is fine. The problem is fat-arrows can't be generator functions and we use them all over the place so you have to use this aliases:
this
const self = this function * foo () { yield self.derp() }
The text was updated successfully, but these errors were encountered:
fix: allow self-aliases
2ab61e5
Allow aliasing self for use within (async) generator functions. Fixes: #104
fix: allow self-aliases (#105)
15cbb1d
Successfully merging a pull request may close this issue.
This rule stops you from doing things like:
It prefers:
Which is fine. The problem is fat-arrows can't be generator functions and we use them all over the place so you have to use
this
aliases:The text was updated successfully, but these errors were encountered: