Skip to content

Add absolute paths to the Front End #1855

Closed
@Kira-Pilot

Description

@Kira-Pilot

We should add absolute paths to the FE of our application. This will help us keep our imports tidy.

Using absolute paths, we will no longer have to import like this:
import { render } from "../../testHelpers/renderHelpers"

Instead, we can import like:
import { render } from "testHelpers/renderHelpers"

Read more here: https://betterprogramming.pub/use-absolute-paths-with-react-51ced66f119f

AC:

  • implement absolute paths using a base URL of src
  • don't worry about import cleanup right now - this can be an incremental effort the whole team can take part in
  • make sure VS Code still recognizes these absolute paths (might have to add

Metadata

Metadata

Assignees

Labels

siteArea: frontend dashboard

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions