-
Notifications
You must be signed in to change notification settings - Fork 775
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
Add standard-markdown to lint js code in markdown files #411
Conversation
Aah what a dumb I am! 😆 I have to work on it a little more. Need to find a way to programmatically add |
So Added |
Alright now it's fixed! 😁 |
Hey @manidlou; thanks for putting in the effort here. I don't like the idea of maintaining a fork here though. I think perhaps we should propose that standard-markdown disables this rule globally, since it does make sense in some cases. How many cases does this rule fail? If it's not too much work, I wouldn't mind changing a few examples to work around this. |
Thanks @RyanZim. I like your approach toward this since I essentially propose this as an idea
Yeah, I am with you on that
That or propose the idea of make
Currently, when I run it without disabling
|
For now, I will fix those cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; Thanks!
@manidlou Can you rebase this into one commit? We don't want the fork in the git history. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I just noticed; your Travis config is running more containers than needed. Why don't you just add standard-markdown
to the lint
script & revert your .travis.yml
changes?
Sure thing. Just don't have access to computer now. I'll do them when I go home tonight. |
Rebase is done. Please let me know if I missed anything 😜 |
Looks good @manidlou, thanks! |
Added standard-markdown to lint js code blocks inside our markdown files. Since
standard-markdown
usesstandard
, we have a consistent linter for both js and markdown files.standard-markdown
by default comes with a few eslint rules disabled. Just added one more rule handle-callback-err to the list ofdisabledRules
instandard-markdown
source code. I guess for us, it makes sense to disable that rule on markdown files.