nezha_dash/eslint.config.js
2024-12-13 15:28:15 +08:00

21 lines
557 B
JavaScript

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,"next/core-web-vitals", "next/typescript"],
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",
},
},
)