I'm adding package.json files in the main folders of my app to be able to import files easily, for example in constants
folder there is a package.json file with {"name":"@constants"}
and to import from the folder I use:
import file from '@constants'
This is very convenient, but when using Typescript I don't get error checking, autocomplete... for files imported these way.