import { FlatCompat } from '@eslint/eslintrc' const compat = new FlatCompat({ // import.meta.dirname is available after Node.js v20.11.0 baseDirectory: import.meta.dirname, }) const eslintConfig = [ ...compat.config({ extends: ['next'], rules: { 'react/no-unescaped-entities': 'off', '@next/next/no-page-custom-font': 'off', "@typescript-eslint/no-explicit-any": "off", // 禁用对显式 any 类型的检查 }, }), ] export default eslintConfig