Skip to content

Commit 4e9b18b

Browse files
committed
eslint fixtures ECMA2030
1 parent db46e12 commit 4e9b18b

File tree

12 files changed

+15
-26
lines changed

12 files changed

+15
-26
lines changed

convex/auth.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
export default {
1+
const val = {
22
providers: [
33
{
44
domain: "https://enjoyed-mako-8.clerk.accounts.dev",
55
applicationID: "convex",
66
},
77
],
88
};
9+
10+
11+
export default val;

convex/http.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,8 @@ http.route({
3030
});
3131

3232
if (success) {
33-
34-
35-
36-
37-
38-
39-
40-
33+
//redirect to success page
34+
console.log("Upgrade to Pro successful");
4135
}
4236
}
4337

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev --turbopack",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"postinstall": "npm install --legacy-peer-deps"
1011
},
1112
"dependencies": {
1213
"@clerk/nextjs": "^6.6.0",

src/app/(home)/_components/EditorPanel.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ import {
1212
RotateCcwIcon,
1313
ShareIcon,
1414
TypeIcon,
15-
PlayIcon,
1615
DownloadIcon,
1716
UploadIcon,
1817
FileIcon,
1918
SettingsIcon,
20-
CheckIcon,
21-
ClockIcon,
2219
} from "lucide-react";
2320

2421
import { Button } from "@/components/ui/button";
@@ -38,7 +35,6 @@ import RunButton from "./RunButton";
3835
function EditorPanel() {
3936
const clerk = useClerk();
4037
const [isShareDialogOpen, setIsShareDialogOpen] = useState(false);
41-
const [activeTab, setActiveTab] = useState("editor");
4238
const { language, theme, fontSize, editor, setFontSize, setEditor } =
4339
useCodeEditorState();
4440
const mounted = useMounted();
@@ -78,14 +74,6 @@ function EditorPanel() {
7874
localStorage.setItem("editor-font-size", size.toString());
7975
};
8076

81-
const handleRunCode = () => {
82-
setStatus("running");
83-
// Simulate code execution
84-
setTimeout(() => {
85-
setStatus(Math.random() > 0.5 ? "passed" : "failed");
86-
}, 2000);
87-
};
88-
8977
if (!mounted) return null;
9078

9179
const statusColors = {

src/app/(home)/_components/Header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const glowAnimation = {
5959
}
6060

6161
function Header() {
62+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6263
const [convexUser, setConvexUser] = useState<any>(null)
6364
const [isVisible, setIsVisible] = useState(true)
6465
const [lastScrollY, setLastScrollY] = useState(0)

src/app/(home)/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import React, { useState, useEffect, useRef } from 'react'
4-
import { motion, AnimatePresence } from 'framer-motion'
4+
import { motion } from 'framer-motion'
55
import EditorPanel from "./_components/EditorPanel"
66
import Header from "./_components/Header"
77
import OutputPanel from "./_components/OutputPanel"

src/app/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const geistMono = localFont({
2323
weight: "100 900",
2424
});
2525

26+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2627
const metadata: Metadata = {
2728
title: "CodeCraft - Online Code Editor",
2829
description: "A modern, collaborative code editor platform",

src/components/ui/NavigationHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import HeaderProfileBtn from "@/app/(home)/_components/HeaderProfileBtn";
22
import { SignedOut } from "@clerk/nextjs";
3-
import { Blocks, Code2, Sparkles } from "lucide-react";
3+
import { Code2, Sparkles } from "lucide-react";
44
import Image from "next/image";
55
import Link from "next/link";
66

src/hooks/use-toast.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type ToasterToast = ToastProps & {
1818
action?: ToastActionElement
1919
}
2020

21+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2122
const actionTypes = {
2223
ADD_TOAST: "ADD_TOAST",
2324
UPDATE_TOAST: "UPDATE_TOAST",

src/hooks/useMounted.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import React, { use } from "react";
3+
import React from "react";
44

55
function useMounted() {
66
const [mounted, setMounted] = React.useState(false);

src/store/useCodeEditorStore.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { create } from "zustand";
22
import { LANGUAGE_CONFIG } from "@/app/(home)/_constants";
33
import { Monaco } from "@monaco-editor/react";
44
import { CodeEditorState } from "@/types";
5-
import { version } from "os";
65

76
const getInitialState = () => {
87
//initial load

tailwind.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,6 @@ export default {
9494
},
9595
},
9696
},
97+
// eslint-disable-next-line @typescript-eslint/no-require-imports
9798
plugins: [require("tailwindcss-animate")],
9899
} satisfies Config;

0 commit comments

Comments
 (0)