chore(integration): fix lint warnings (react-hooks/exhaustive-deps, react/no-unescaped-entities, unused-vars)
Leftover lint cleanups to make 'npm run lint' pass on the integrated branch: - calendar/page.tsx: add eslint-disable for mount-only useEffect blocks - import/route.ts: replace destructure-and-ignore with renames (_id, _created, _updated) - settings-agents.tsx: escape apostrophe in JSX text
This commit is contained in:
@@ -60,8 +60,7 @@ export const POST = withAuth(async (request: NextRequest, _user) => {
|
||||
for (const item of items) {
|
||||
try {
|
||||
// Strip id, created, updated to let PocketBase generate new ones
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const { id, created, updated, ...data } = item;
|
||||
const { id: _id, created: _created, updated: _updated, ...data } = item;
|
||||
await pb.collection(collection).create(data);
|
||||
result.imported++;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user