Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Dec 13, 2024
1 parent 55cc033 commit 408cd9c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Binary file modified bun.lockb
Binary file not shown.
20 changes: 20 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -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",
},
},
)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 408cd9c

Please sign in to comment.