65dc805eb5
- 前端: ESLint+Prettier配置、Tailwind v4配置、ErrorBoundary、全局AuthLoader优化、ReactQuery分层 - 后端: MinIO凭证移除、Docker统一为govai品牌、zerolog日志封装、错误码枚举、文件上传校验、单元测试(13项全通过) - 运维: 健康检查增强(PG/Redis ping)、Prometheus指标(/metrics端点)、多租户tenant包、RateLimit nil防御 - 移动: citation_prompt.txt → internal/assets/
30 lines
674 B
JavaScript
30 lines
674 B
JavaScript
import { defineConfig, globalIgnores } from "eslint/config";
|
|
import prettier from "eslint-plugin-prettier";
|
|
import nextVitals from "eslint-config-next/core-web-vitals";
|
|
import nextTs from "eslint-config-next/typescript";
|
|
|
|
const eslintConfig = defineConfig([
|
|
...nextVitals,
|
|
...nextTs,
|
|
{
|
|
plugins: { prettier },
|
|
rules: {
|
|
"prettier/prettier": "error",
|
|
},
|
|
},
|
|
// QueryClient 单例模式必须使用 ref 检查,非 bug
|
|
{
|
|
files: ["src/components/providers.tsx"],
|
|
rules: {
|
|
"react-hooks/refs": "off",
|
|
},
|
|
},
|
|
globalIgnores([
|
|
".next/**",
|
|
"out/**",
|
|
"build/**",
|
|
"next-env.d.ts",
|
|
]),
|
|
]);
|
|
|
|
export default eslintConfig; |