-
-
Notifications
You must be signed in to change notification settings - Fork 274
Add support for markdownlint-cli2 #1011
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
base: main
Are you sure you want to change the base?
Conversation
Thanks Piotr! Much appreciated. Please add a test with a fixture to clarify what the plugin does and to prevent future regressions. Each and every existing Knip plugin has this. Also see https://knip.dev/guides/writing-a-plugin#create-a-new-plugin |
Sure thing! Will try to do it by end of this week... |
hey @webpro I made a first attempt to write a test, but does not seem to be working as expected. Can you maybe have a look an tell me what I am doing wrong?
I pushed my changes in the PR. Looking forward to hear your feedback... |
Thank you for working on this, feel free to ask away!
Everything looks good at the moment. So The
That should result in the lint issue "unused devDependency" which should be in By the way, you'd have to make a new fixture directory for this (e.g.
If this situation happens, I'd expect the config file to be reported as unused (in
One workflow I like, if you're using VS Code (I guess you could configure the same on others), run the debugger from a test file like |
e764138
to
d4c7379
Compare
ea72d80
to
7787123
Compare
Is there still interest in finishing this PR? No worries if not, but I'm going to clean things up a bit around here. |
There is! Let me have a look this week. If I won't make it, I will close it... |
Sure, no hurries, just wanted to check if it's still interesting/relevant. |
5a2d249
to
6bd250a
Compare
Link: https://github.com/DavidAnson/markdownlint-cli2