feat: 更新 eslint 配置

This commit is contained in:
hzm
2026-02-19 18:21:56 +08:00
parent 623c41acf6
commit b645c7d034
9 changed files with 5459 additions and 26 deletions

20
eslint.config.mjs Normal file
View File

@@ -0,0 +1,20 @@
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals';
const config = [
{
ignores: [
'.next/**',
'out/**',
'dist/**',
'coverage/**'
]
},
...nextCoreWebVitals,
{
rules: {
'react-hooks/set-state-in-effect': 'off'
}
}
];
export default config;