GC Digital Talent is the new recruitment platform for digital and tech jobs in the Government of Canada. // Talents numériques du GC est la nouvelle plateforme de recrutement pour les emplois numériques et technologiques au gouvernement du Canada.
Ignore the unused modules warning from eslint in the static assets type definition file.
🕵️ Details
ESLint is just confused. This providing the types for static assets since vite returns a URL to the static asset, we need to define this type for each file extension here. However, even though these are type defintions, eslint thinks we are actuaslly exporting the modules (we arent) so they can be safely ignored.
♻️ Debt/Refactor
Ignore the unused modules warning from eslint in the static assets type definition file.
🕵️ Details
ESLint is just confused. This providing the types for static assets since
vite
returns a URL to the static asset, we need to define this type for each file extension here. However, even though these are type defintions, eslint thinks we are actuaslly exporting the modules (we arent) so they can be safely ignored.🙋♀️ Proposed Solution
Add a line to ignore this error for the entire file.
✅ Acceptance Criteria