chatgpt2api / web /eslint.config.mjs
li2895's picture
Update to v1.7.0 with HuggingFace adaptation
c47ec10
Raw
History Blame Contribute Delete
506 Bytes
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals';
import nextTypescript from 'eslint-config-next/typescript';
import prettier from 'eslint-config-prettier/flat';
const eslintConfig = [
...nextCoreWebVitals,
...nextTypescript,
prettier,
{
rules: {
'@typescript-eslint/no-unused-vars': 'off', // 不检查未使用的变量
'@typescript-eslint/no-explicit-any': 'off', // 关闭 any 报错
},
},
];
export default eslintConfig;