8000 chore: Improves linting rule to catch mishandled promises by tommoor · Pull Request #5506 · outline/outline · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: Improves li 8000 nting rule to catch mishandled promises #5506

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

Merged
merged 1 commit into from
Jul 1, 2023

Conversation

tommoor
Copy link
Member
@tommoor tommoor commented Jul 1, 2023

Unfortunately having this lint rule work properly required upgrading typescript and eslint.

@tommoor tommoor force-pushed the chore/bump-tsc-eslint branch from 3276a1d to 6f8a77a Compare July 1, 2023 15:17
@tommoor tommoor requested a review from apoorv-mishra July 1, 2023 15:17
@tommoor tommoor merged commit f843a20 into main Jul 1, 2023
@tommoor tommoor deleted the chore/bump-tsc-eslint branch July 1, 2023 17:25
}, 100);
// setTimeout is needed here because SearchQuery is saved asynchronously
// in order to not slow down the response time.
await new Promise((resolve) => setTimeout(resolve, 100));
Copy link
Member

Choose a reason for hiding this comment

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

We already have a util for this in server/utils/timers.ts

Copy link
Member Author

Choose a reason for hiding this comment

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

gtk, I don't feel too bad about a dupe here with it being tests

@@ -4,6 +4,7 @@ import * as React from "react";
import { useTranslation } from "react-i18next";
import styled from "styled-components";
import Avatar from "~/components/Avatar";
import { AvatarSize } from "~/components/Avatar/Avatar";
Copy link
Member

Choose a reason for hiding this comment

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

These changes are unrelated to linting?

@@ -21,6 +21,7 @@
"strictNullChecks": true,
"noEmit": true,
"skipLibCheck": true,
"ignoreDeprecations": "5.0",
Copy link
Member

Choose a reason for hiding this comment

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

Remember this as a temporary fix.

@apoorv-mishra
Copy link
Member

Oops! This is already merged 😆

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
0