mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-28 21:44:38 +00:00
- Updated ESLint configuration to include unit test files with TypeScript and JSX support. - Modified tsconfig.json to include test files for better type checking. - Added a new tsconfig.unit.json for unit tests, specifying necessary types and includes. - Adjusted vitest.config.ts to include the new test file patterns for comprehensive testing coverage.
31 lines
783 B
JSON
31 lines
783 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ESNext",
|
|
"useDefineForClassFields": true,
|
|
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
|
|
/* Path aliases */
|
|
"baseUrl": ".",
|
|
"paths": { "@openhuman/skill-types": ["src/lib/skills/types.ts"] },
|
|
|
|
/* Linting */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true
|
|
},
|
|
"include": ["src", "test/*.test.ts", "test/*.test.tsx"],
|
|
"exclude": ["skills"],
|
|
"references": [{ "path": "./tsconfig.node.json" }]
|
|
}
|