Files
charilezhou 458348a1a3 chore: 升级 Next.js 16 和 ESLint 9
- Next.js 从 15.1.3 升级到 16.1.1
- ESLint 从 8.x 升级到 9.39,迁移到 flat config 格式
- 将 .eslintrc.js 替换为 eslint.config.mjs
- 更新 eslint-config-next 到 16.1.1
- 添加 eslint-plugin-react 支持
- 更新 CLAUDE.md 版本信息

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 15:37:43 +08:00

27 lines
446 B
JavaScript

import baseConfig from './index.mjs';
import reactPlugin from 'eslint-plugin-react';
import globals from 'globals';
export default [
...baseConfig,
{
plugins: {
react: reactPlugin,
},
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/jsx-key': 'error',
},
},
];