fix: resolve all lint errors, improve type safety, and remove unused code
Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Failing after 7m26s

Remove unused imports, replace `any` types with proper interfaces in directus.ts
and i18n-loader.ts, exclude scripts/ and coverage/ from ESLint, and fix
unused variable warnings across the codebase.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 14:46:35 +01:00
parent a5dba298f3
commit 6fd4756f35
12 changed files with 155 additions and 72 deletions

View File

@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-require-imports */
const fetch = require('node-fetch');
require('dotenv').config();
@@ -136,8 +137,8 @@ async function syncHobbies() {
})
});
}
} catch (e) {
console.error(`Failed to sync ${hobby.key}:`, e.message);
} catch (_e) {
console.error(`Failed to sync ${hobby.key}:`, _e.message);
}
}
@@ -154,7 +155,7 @@ async function syncHobbies() {
headers: { 'Authorization': `Bearer ${DIRECTUS_TOKEN}` }
});
}
} catch (e) {}
} catch (_e) {}
console.log('✅ Done!');
}