GCTC-NTGC / gc-digital-talent

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.
https://talent.canada.ca
GNU Affero General Public License v3.0
22 stars 9 forks source link

♻️ Ignore unused modules warning for static asset types #12063

Closed esizer closed 10 hours ago

esizer commented 4 days ago

♻️ 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