diff --git a/app/(main)/page.tsx b/app/(main)/page.tsx
index f41ff2b..e7f0b6f 100644
--- a/app/(main)/page.tsx
+++ b/app/(main)/page.tsx
@@ -7,5 +7,5 @@ export default async function Home() {
- );
+ )
}
diff --git a/auth.ts b/auth.ts
index 0dd5b26..8b5698f 100644
--- a/auth.ts
+++ b/auth.ts
@@ -22,7 +22,7 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
],
callbacks: {
async signIn({ user }) {
- // @ts-ignore
+ // @ts-expect-error user is not null
if (user.error) {
return false
}
diff --git a/bun.lockb b/bun.lockb
index 3278b7f..49affa2 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/eslint.config.js b/eslint.config.js
new file mode 100644
index 0000000..0f7515f
--- /dev/null
+++ b/eslint.config.js
@@ -0,0 +1,20 @@
+import js from "@eslint/js"
+import globals from "globals"
+import tseslint from "typescript-eslint"
+
+export default tseslint.config(
+ { ignores: [".next"] },
+ {
+ extends: [js.configs.recommended, ...tseslint.configs.recommended],
+ files: ["**/*.{ts,tsx}"],
+ languageOptions: {
+ ecmaVersion: 2020,
+ globals: globals.browser,
+ },
+ rules: {
+ "@typescript-eslint/no-explicit-any": "off",
+ "@next/next/no-img-element": "off",
+ "react-hooks/exhaustive-deps": "off",
+ },
+ },
+)
diff --git a/package.json b/package.json
index 9928853..05b6032 100644
--- a/package.json
+++ b/package.json
@@ -2,6 +2,7 @@
"name": "nezha-dash",
"version": "1.8.1",
"private": true,
+ "type": "module",
"scripts": {
"dev": "next dev -p 3040",
"start": "node .next/standalone/server.js",