fix: lint

This commit is contained in:
hamster1963 2024-12-13 15:19:21 +08:00
parent 880710fa1d
commit b47b8d17c6
5 changed files with 23 additions and 2 deletions

View File

@ -7,5 +7,5 @@ export default async function Home() {
<ServerOverview /> <ServerOverview />
<ServerList /> <ServerList />
</div> </div>
); )
} }

View File

@ -22,7 +22,7 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
], ],
callbacks: { callbacks: {
async signIn({ user }) { async signIn({ user }) {
// @ts-ignore // @ts-expect-error user is not null
if (user.error) { if (user.error) {
return false return false
} }

BIN
bun.lockb

Binary file not shown.

20
eslint.config.js Normal file
View File

@ -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",
},
},
)

View File

@ -2,6 +2,7 @@
"name": "nezha-dash", "name": "nezha-dash",
"version": "1.8.1", "version": "1.8.1",
"private": true, "private": true,
"type": "module",
"scripts": { "scripts": {
"dev": "next dev -p 3040", "dev": "next dev -p 3040",
"start": "node .next/standalone/server.js", "start": "node .next/standalone/server.js",