Skip to content
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

Fix lint #59

Merged
merged 2 commits into from
Sep 20, 2022
Merged

Fix lint #59

merged 2 commits into from
Sep 20, 2022

Conversation

timothymorse
Copy link
Contributor

@timothymorse timothymorse commented Sep 20, 2022

Description

After upgrading some of our dependencies, issues with our lint rules or code were exposed.

Acceptance Criteria

Running npm run test && lint should pass without error.

Note IRON-12855.

@timothymorse timothymorse self-assigned this Sep 20, 2022
@timothymorse timothymorse requested review from a team September 20, 2022 18:02
@timothymorse timothymorse marked this pull request as ready for review September 20, 2022 18:03
@@ -19,6 +19,10 @@ class Demo extends React.Component {
};
}

static onEventMethod = (name, ...args) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

oooo. what are the implications of using a static here? i dont think i've seen us use this here before

Copy link
Contributor Author

@timothymorse timothymorse Sep 20, 2022

Choose a reason for hiding this comment

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

We did this for the class-methods-use-this line rule. Since we don't reference this within the method—the rule asks us to make the method static—which makes sense in this context as it's more of a helper/utility method.

@timothymorse timothymorse merged commit 21c49bf into next Sep 20, 2022
@timothymorse timothymorse deleted the timothymorse/fix-lint branch April 24, 2023 20:33
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.

3 participants