Skip to content
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

Bug: '-r' parameter does not work with scoped package #449

Closed
BolkoSchreiber opened this issue Jan 19, 2024 · 1 comment
Closed

Bug: '-r' parameter does not work with scoped package #449

BolkoSchreiber opened this issue Jan 19, 2024 · 1 comment
Labels

Comments

@BolkoSchreiber
Copy link

markdownlint -r @myScope/custom_rules_package . does not work.

error msg:

Cannot load custom rule @myScope/custom_rules_package: No such rule

workaround:
install scoped package locally and change cli call to

markdownlint -r node_modules/@myScope/custom_rules_package .

@DavidAnson
Copy link
Collaborator

Glancing at the code, I think tryResolvePath is incorrectly deciding this is a file path based on having a slash in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants