HHS / simpler-grants-gov

https://simpler.grants.gov
Other
42 stars 13 forks source link

[Task]: Enforce absolute imports for frontend #1868

Closed acouch closed 1 month ago

acouch commented 6 months ago

Summary

The frontend is currently using a mix of relative and absolute imports. This task is to update the frontend imports to use absolute paths. Additionally we should add a relative path setting of src/ so that absolute imports become component/Footer instead of src/components/Footer.

If there is a reason not to use absolute imports, there should at least be a consistent approach across the frontend, and this ticket can be used to document that.

Acceptance criteria

acouch commented 6 months ago

I added this to search ui fast follow but it could be considered longer-term frontend enhancement work.