f7a720204a
- 移除 GovAI, nomifun-tauri, 算力盒子 的 submodule 引用 - 添加所有子项目的完整源代码 - 保留原始 .git 为 .git.bak 备份
26 lines
654 B
JavaScript
26 lines
654 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;
|