okfn / opendataeditor

No-code application to explore and publish all kinds of data: datasets, tables, charts, maps, stories, and more. Forever free and open source project powered by open standards and generative AI.
http://opendataeditor.okfn.org
MIT License
150 stars 18 forks source link

Create import aliases in tsconfig.json #373

Open guergana opened 1 month ago

guergana commented 1 month ago

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