- 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>
27 lines
446 B
JavaScript
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',
|
|
},
|
|
},
|
|
];
|