-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple slashes in path doesn't throw error on windows. #557
Comments
Yeah, sounds like a good thing to do, in addition to checking that the actual filesystem case matches. |
Ran into this issue today. Maybe we could name the rule |
@bsouthga As a workaround, you can use the rules:
no-restricted-imports:
- error
- patterns: ['**//'] |
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:
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?
The text was updated successfully, but these errors were encountered: