codeforpdx / PASS

PASS project - with HMIS module integration
MIT License
26 stars 25 forks source link

Fix Vite alias pathing for Intellisense #416

Closed leekahung closed 10 months ago

leekahung commented 10 months ago

Fix Vite alias pathing for Intellisense

At the moment, we utilizes Vite aliases to help link our modules/components with the "@" symbol (i.e. @hooks for ./src/hooks). However, Intellisense doesn't seem to be picking up the correcting paths to these files. To fix this, I've coded up a jsconfig.json file in the project root to resolve this problem.


This PR:

1. Allows Intellisense to pick up the pathing to Vite aliases


The files this PR effects:

All files that utilizes Vite aliases as a shortcut to components/modules/etc.

Other Files


Screenshots (if applicable):

Without jsconfig.json and Intellisense support:

Screen Shot 2023-09-13 at 6 28 54

With jsconfig.json and Intellisense support:

Screen Shot 2023-09-13 at 6 30 00
leekahung commented 10 months ago

Just saw the typo pointed out by @xscottxbrownx. Made a new PR to fix that in #419