Skip to content

Multiple slashes in path doesn't throw error on windows. #557

Closed

Description

A "nice" difference between *nix and windows systems is that unix treats duplicate slashes in paths /User/ben////my////path/// As one slash /User/ben/my/path/.

Windows however does not. This means that on windows, the module loader will be unable to find paths that are okeyed by the linter, for example:

// fine on unix, bad on windows...
import workflow from './/workflow';

Is there a way we could add a platform specific check? or maybe just disallow duplicate slashes, as they will be removed automatically on unix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions