Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-10254

Add @/ path alias for cleaner imports

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Image Builder
    • None

        1. Summary
          Adds a `@/` import alias pointing to `src/` to avoid deep relative imports (e.g., `../../../Components/whatever`). This allows gradual migration during the codebase revamp.
        1. Changes
      • Configure `@/*` path alias in `tsconfig.json` with `baseUrl`
      • Add corresponding webpack alias in `fec.config.js`
      • Add corresponding Vite alias in `vitest.config.ts`
      • Update ESLint `import/order` to sort `@/**` imports in the internal group
      • Document import path guidelines in `README.md` and `AGENTS.md`

              gzuccare@redhat.com Gianluca Zuccarelli
              imagebuilder-bot Image-Builder Bot
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: