#349·bases

添加凸形 tsconfig 基础

作者: typed-sigterm创建于 2026年2月20日更新于 2026年2月20日
jsonc
{
  /* 此 TypeScript 项目配置描述了 Convex 函数运行的环境,并用于类型检查。您可以修改它,但有些设置是 Convex 使用所需的。 */
  "compilerOptions": {
    /* 这些设置不需要由 Convex 使用,可以修改。 */
    "allowJs": true,
    "strict": true,
    "moduleResolution": "Bundler",
    "jsx": "react-jsx",
    "skipLibCheck": true,
    "allowSyntheticDefaultImports": true,
    /* 这些编译器选项是 Convex 所需的。 */
    "target": "ESNext",
    "lib": ["ES2021", "dom"],
    "forceConsistentCasingInFileNames": true,
    "module": "ESNext",
    "isolatedModules": true,
    "noEmit": true
  },
  "include": ["./**/*"],
  "exclude": ["./_generated"]
}
[源代码](https://GitHub.com/get-convex/better-auth/blob/f37778d9a6f651c8895094785ba743e5d4f2cb18/examples/next/.Cursor/rules/convex_rules.mdc#L670-L697)