Skip to content

Handle star imports and default imports #807

Open
@adamviktora

Description

@adamviktora

When consumers import things from Patternfly in such manner:

import ReactTable from '@patternfly/react-table';

<ReactTable.Table></ReactTable.Table>


import * as Patternfly from "@patternfly/react-core";

<Patternfly.Button></Patternfly.Button>

then codemods won't be able to find and do a fix.

We should update our helpers / rules to be able to apply fixes in these cases.
Modifying existing rules would probably be too much work, but we should cover these cases in the future for potential V6 -> V7 updates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions