-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-05-05] [$1000] Enable no-invalid-this
ESLint rule
#17971
Comments
Triggered auto assignment to @NicMendonca ( |
Bug0 Triage Checklist (Main S/O)
|
no-invalid-this
ESLint ruleno-invalid-this
ESLint rule
Job added to Upwork: https://www.upwork.com/jobs/~0138e39a2b0f958b39 |
Current assignee @NicMendonca is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
Triggered auto assignment to @tgolen ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Using this outside of classes or class-like objects might work because it could refer to the module (for example, ReportUtils), but after building it, it might not be the case. This can lead to runtime exceptions. What is the root cause of that problem?As can be seen in the thread in the OP, the use of a non required What changes do you think we should make in order to solve the problem?We nee to enable the As of now, there is only 1 occurrence of this rule offender in the repo: I've worked with eslint-config-expensify before on this issue so I'll be a good fit for this issue. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Enable no-invalid-this ESLint rule What is the root cause of that problem?Enable What changes do you think we should make in order to solve the problem?We should create new file in https://github.com/Expensify/eslint-config-expensify/tree/main/rules with the name of Also add newly created file here: What alternative solutions did you explore? (Optional) |
@Prince-Mendiratta Thanks for the proposal. Let's get this going! 🎀 👀 🎀 C+ reviewed cc @pecanoro |
@alitoshmatov Thanks for the proposal. Given this is a feature request there is not much to base proposal selection on. So we are going with the first proposal that we get. I hope this makes sense and looks fair for all. The location of the rule is not a significant difference and I think es6 is just fine. |
Hello dev team, |
📣 @riffly! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
@riffly Hi 👋! Do you have access to Slack? If yes, then please post such problems on Slack, but by the way you don't need access to SO. Run |
🟢 to hire @Prince-Mendiratta for this. I can help you with publishing the config to NPM when the time comes. |
To enable the no-invalid-this ESLint rule in your project, you can add it to your ESLint configuration file. |
@gulfam110 Hi! Thanks for your input. I assume you are new here so Welcome! I would really insist that your read the contributing guide. If you have any questions outside the GH issue, please ask on Slack. |
📣 @Prince-Mendiratta You have been assigned to this job by @pecanoro! |
Assigning @Prince-Mendiratta since I think @tgolen forgot hehe |
@Prince-Mendiratta hired ✅ |
no-invalid-this
ESLint ruleno-invalid-this
ESLint rule
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.7-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-05-05. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
What a friendly non time-consuming checklist 😍 |
@s77rt can you please apply to the job: https://www.upwork.com/jobs/~0138e39a2b0f958b39 |
@Prince-Mendiratta you've been paid, thank you! |
@NicMendonca Applied. |
@s77rt paid! Thank you! |
Context: https://expensify.slack.com/archives/C049HHMV9SM/p1682089468352009
Problem
Using
this
outside of classes or class-like objects might work because it could refer to the module (for example, ReportUtils), but after building it, it might not be the case. This will cause crashes that cannot be caught while testing PRs and will only be seen once the app is deployed on staging or production.Solution
Enable this ESLint rule (no-invalid-this) in our eslint-config-expensify repo.
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: