Open guergana opened 6 months ago
Modify the file tsconfig.json in the project to make it easier to import components and functions into the current code and avoid relative imports.
tsconfig.json
Example of the current imports: import * as helpers from '../../../helpers'
import * as helpers from '../../../helpers'
desired import: import * as helpers from '@helpers, etc.
import * as helpers from '@helpers
This guide can be used as a reference on how to add aliases in React Typescript projects
Overview
Modify the file
tsconfig.json
in the project to make it easier to import components and functions into the current code and avoid relative imports.Example of the current imports:
import * as helpers from '../../../helpers'
desired import:
import * as helpers from '@helpers
, etc.This guide can be used as a reference on how to add aliases in React Typescript projects