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

How to pass options to remark-lint on the CLI? #25

Closed
why-jay opened this issue Sep 12, 2015 · 6 comments
Closed

How to pass options to remark-lint on the CLI? #25

why-jay opened this issue Sep 12, 2015 · 6 comments
Labels
🙋 no/question This does not need any changes

Comments

@why-jay
Copy link

why-jay commented Sep 12, 2015

Is there a way to pass mdast-lint-specific options via the CLI? I know .mdastrc is the place for these, but it'd be convenient to be able to use my custom rules straight from the CLI without having to write a .mdastrc.

@wooorm wooorm closed this as completed in 35c4066 Sep 12, 2015
@wooorm
Copy link
Member

wooorm commented Sep 12, 2015

You should now be able to pass options: mdast -u lint="maximum-line-length:20,retest:true". See mdastplugin(7) Command Line Usage for more info

@why-jay
Copy link
Author

why-jay commented Sep 12, 2015

Thanks, you rock!

@wooorm
Copy link
Member

wooorm commented Sep 12, 2015

😄

@why-jay
Copy link
Author

why-jay commented Sep 12, 2015

Quick help, how would it work for an array value? external has to be an array..

mdast -u lint="external:???".

@wooorm
Copy link
Member

wooorm commented Sep 12, 2015

lint="external:[\"foo\", \"bar\", \"baz\"]". It’s JSON with some tiny sugar!

@why-jay
Copy link
Author

why-jay commented Sep 12, 2015

Thanks so much!

@wooorm wooorm added the 🙋 no/question This does not need any changes label Aug 15, 2019
@wooorm wooorm changed the title CLI: pass mdast-lint options? How to pass options to remark-lint on the CLI? Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes
Development

No branches or pull requests

2 participants