- Update API contract to use nested router structure for sessions and devices (me.sessions.list, me.devices.getInfo, etc.) - Update frontend Svelte components to use new nested API paths - Fix test assertion patterns for consistency (remove async () => wrappers) - Fix test-db.ts findRepoRoot to use existsSync for directory checking (Bun.file().exists() returns false for directories) - Add ESLint config override for test files to handle expect().rejects patterns Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
611 B
JavaScript
25 lines
611 B
JavaScript
import { configs } from "@macalinao/eslint-config";
|
|
|
|
export default [
|
|
...configs.fast,
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
rules: {
|
|
// Disable for stub handlers - will be removed when implemented
|
|
"@typescript-eslint/require-await": "off",
|
|
},
|
|
},
|
|
{
|
|
// Disable certain rules for test files that have issues with expect().rejects
|
|
files: ["**/__tests__/**/*.ts"],
|
|
rules: {
|
|
"@typescript-eslint/await-thenable": "off",
|
|
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
},
|
|
},
|
|
];
|