aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-07-10 00:16:16 +0100
committerGravatar Joe Banks <[email protected]>2024-07-10 01:51:05 +0100
commitf7f64ab9aab7204a045a43f37d59f7956918ede8 (patch)
tree6cb3c42568d28f1f259d0fdad65fee32b5d04e95
parentAdd new linting config (diff)
Remove unused linting ignores
-rw-r--r--src/index.tsx3
-rw-r--r--src/pages/FormPage/FormPage.tsx1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/index.tsx b/src/index.tsx
index 2565964..dad0f59 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -36,7 +36,7 @@ console.log(` SHA: %c ${process.env.COMMIT_REF} `, `padding: 2px; border-radiu
console.log("%cCome join us on Discord! https://discord.gg/python", `font-size: 1.5em; font-family: "Hind", "Arial"; color: ${colors.blurple}`);
const rootDocument = document.getElementById("root");
-// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+
const root = createRoot(rootDocument!);
root.render(
<React.StrictMode>
@@ -55,6 +55,5 @@ root.render(
</Sentry.ErrorBoundary>
</React.StrictMode>
);
-/* eslint-enable react/react-in-jsx-scope */
serviceWorker.unregister();
diff --git a/src/pages/FormPage/FormPage.tsx b/src/pages/FormPage/FormPage.tsx
index 05b51c0..9ffa4fc 100644
--- a/src/pages/FormPage/FormPage.tsx
+++ b/src/pages/FormPage/FormPage.tsx
@@ -69,7 +69,6 @@ function FormPage(): JSX.Element {
useEffect(() => {
// ID can't be null due to the routing to get here
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
getForm(id!).then(form => {
setForm(form);
setFormLoading(LoadingState.Found);