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: update eslint config and lint errors #422

Merged
merged 12 commits into from
Dec 6, 2024
Merged

Conversation

JBR90
Copy link
Contributor

@JBR90 JBR90 commented Dec 3, 2024

Description

  • Eslint config updates, warn to error for

"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

  1. Go to https://oak-ai-lesson-assistant-l5x19wyy4.vercel-preview.thenational.academy
    Should all work as before

Checklist

  • Manually tested across browsers / devices
  • Considered impact on accessibility
  • Does this PR update a package with a breaking change

Copy link

vercel bot commented Dec 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
oak-ai-lesson-assistant ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2024 6:47pm

@JBR90 JBR90 changed the title Chore update eslint config fix: update eslint config and lint errors Dec 3, 2024
Copy link

github-actions bot commented Dec 3, 2024

Playwright test results

passed  14 passed
flaky  1 flaky
skipped  1 skipped

Details

report  Open report ↗︎
stats  16 tests across 15 suites
duration  2 minutes, 35 seconds
commit  e75d3c4

Flaky tests

No persona › tests/modifiy-lesson.test.ts › Modify a lesson plan › Modify a lesson resource

Skipped tests

No persona › tests/auth.test.ts › authenticate through Clerk UI

@JBR90 JBR90 requested a review from stefl December 3, 2024 13:34
@JBR90 JBR90 marked this pull request as ready for review December 3, 2024 13:34
@@ -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";
Copy link
Contributor

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?

Copy link
Contributor Author

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";
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same here

Copy link

sonarqubecloud bot commented Dec 4, 2024

@JBR90 JBR90 merged commit 34774b5 into main Dec 6, 2024
19 checks passed
@JBR90 JBR90 deleted the chore-update-eslint-config branch December 6, 2024 09:49
@oak-machine-user
Copy link
Collaborator

🎉 This PR is included in version 1.18.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants