next.js打包忽略eslint和typescript报错导致打包失败的问题 ant-design引入兼容包,以兼容React19 eslint配置文件由json更换成js 反馈内容由写死的改为获取当前的conversationid会话ID,反馈的用户名称username从cookie里获取 反馈弹窗弹出时使用Promise异步等待如果没有点击确定,则不传递给dify已反馈成功请求
33 lines
687 B
JavaScript
33 lines
687 B
JavaScript
const antfu = require('@antfu/eslint-config').default
|
|
|
|
// module.exports = antfu()
|
|
|
|
export default {
|
|
extends: [
|
|
'@antfu',
|
|
'plugin:react-hooks/recommended',
|
|
],
|
|
rules: {
|
|
'@typescript-eslint/consistent-type-definitions': [
|
|
'error',
|
|
'type',
|
|
],
|
|
'no-console': 'off',
|
|
'indent': 'off',
|
|
'@typescript-eslint/indent': [
|
|
'error',
|
|
2,
|
|
{
|
|
SwitchCase: 1,
|
|
flatTernaryExpressions: false,
|
|
ignoredNodes: [
|
|
'PropertyDefinition[decorators]',
|
|
'TSUnionType',
|
|
'FunctionExpression[params]:has(Identifier[decorators])',
|
|
],
|
|
},
|
|
],
|
|
'react-hooks/exhaustive-deps': 'warn',
|
|
},
|
|
}
|