Skip to content

Non-relative module imports #901

@emersonlaurentino

Description

@emersonlaurentino

It would be nice to be able to import without having the relative import path.

Exemple

Currently, in the Bullets component, we import the Button component.
Então a importação fica:

import Button from '../../atoms/Button'

With Non-relative import, we would have something like this:

import Button from 'atoms/Button'

To understand how to implement and what the implications are, here is the official Typescript documentation.

We can just start in the store-ui project and add this setting to the other packages too, what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions