Skip to content

"import-sort-cli" doesn't match files/directories starting with "+" ending up with "No files found for the given patterns" error #71

@vladimiry

Description

@vladimiry

The core issue is in micromatch matching, used by globby internally, see playground here https://codesandbox.io/s/10p9160v7l

So a possible solution is to escaping "+" character, probably not only the plus one. Ie escaping each pattern before calling globby.sync here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions