okfn / opendataeditor

The Open Data Editor (ODE) is a no-code application to explore, validate and publish data in a simple way. Forever free and open source project powered by the Frictionless Framework.
http://opendataeditor.okfn.org
MIT License
183 stars 23 forks source link

Create import aliases in tsconfig.json #373

Open guergana opened 6 months ago

guergana commented 6 months 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