feat: 更新 eslint 配置
This commit is contained in:
20
eslint.config.mjs
Normal file
20
eslint.config.mjs
Normal 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;
|
||||
Reference in New Issue
Block a user