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

Implemented import all functionality #147

Merged

Conversation

vbihun
Copy link
Contributor

@vbihun vbihun commented Jan 13, 2025

Description

Please include a description of changes introduced in this PR.

Checklist

Please ensure that each of these items has been addressed:

  • I have tested these changes in my local environment
  • I have added/modified tests as applicable to cover these changes
  • (Atlassian contributors only) I have removed any Atlassian-internal changes including internal modules, references to internal tickets, and internal wiki links

@vbihun vbihun requested a review from a team as a code owner January 13, 2025 14:08
@@ -24,6 +24,11 @@ export const getComponentTypeOption = (typeId?: string): CompassComponentTypeOpt
return getComponentTypeOption(DEFAULT_COMPONENT_TYPE_ID);
};

export const sleep = (ms: number): Promise<void> => {
// eslint-disable-next-line no-promise-executor-return
return new Promise((resolve) => setTimeout(resolve, ms));
Copy link
Contributor

Choose a reason for hiding this comment

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

Would this be an equivalent approach that would follow the ESLint rule?

export const sleep = (ms: number): Promise<void> => {
  return new Promise((resolve) => {
    setTimeout(() => resolve(), ms);
  });
};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eserranovalle, I will fix it in the next PR

@vbihun vbihun merged commit 0ae994a into atlassian-labs:main Jan 14, 2025
4 checks passed
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