-
Notifications
You must be signed in to change notification settings - Fork 0
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: update eslint config and lint errors #422
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Playwright test resultsDetails Open report ↗︎ Flaky testsNo persona › tests/modifiy-lesson.test.ts › Modify a lesson plan › Modify a lesson resource Skipped testsNo persona › tests/auth.test.ts › authenticate through Clerk UI |
@@ -3,6 +3,7 @@ import { useRef, useState } from "react"; | |||
import { OakPrimaryButton } from "@oaknational/oak-components"; | |||
import { Flex } from "@radix-ui/themes"; | |||
import type { Survey } from "posthog-js"; | |||
import { SurveyQuestionType } from "posthog-js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a type? So import type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's an enum so cannot be imported as a type
@@ -3,6 +3,7 @@ import { useEffect, useState, useCallback } from "react"; | |||
import { aiLogger } from "@oakai/logger"; | |||
import * as Sentry from "@sentry/react"; | |||
import type { Survey } from "posthog-js"; | |||
import { SurveyType } from "posthog-js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be import type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Quality Gate passedIssues Measures |
🎉 This PR is included in version 1.18.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
"no-extra-boolean-cast": "error",
"no-useless-escape": "error",
"no-unsafe-finally": "error",
"no-prototype-builtins": "error",
"@typescript-eslint/no-unsafe-enum-comparison"
"@typescript-eslint/restrict-template-expressions": "error",
"@typescript-eslint/await-thenable": "error",
Issue(s)
How to test
Should all work as before
Checklist