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
classPropertiesAllowed
According to the document, classPropertiesAllowed is for methods that "when doing so would not alter or break their behaviour". So a method like:
class A { method() { this; } }
won't be converted to arrow function, which is not so helpful.
Add a option to convert methods like this.
The text was updated successfully, but these errors were encountered:
Could you be more specific please about what the actual behaviour is and the expected behaviour? It's not clear to me just yet, thanks!
Sorry, something went wrong.
In this example, this eslint plugin will do nothing, even if classPropertiesAllowed is set to true. Is there any solution for this case?
true
Isn’t that because the method contains “this”?
No branches or pull requests
Description
According to the document,
classPropertiesAllowed
is for methods that "when doing so would not alter or break their behaviour". So a method like:won't be converted to arrow function, which is not so helpful.
Suggested Solution
Add a option to convert methods like this.
The text was updated successfully, but these errors were encountered: