-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Make it consistent #984
Make it consistent #984
Conversation
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.
yeah why not
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.
Actually these should all have semicolons, per airbnb's style guide. Please make a followup PR to add them.
@ljharb you might be interested to know that this is the result of running all code inside our markdown through eslint (after disabling some rules that arguably don't really apply to code snippets) |
so do we really want to fix these 6 semicolons but ignore the other +900 deviations from the style guide? |
Let's fix one rule at a time, but yes, they should all be fixed. It'd be great to add this check to the tests, so that incorrect code can be kept out of examples in the first place. |
@ljharb its trivial to add this check, the problem is we can't add this check without first fixing all existing errors |
If you can point me to a branch I can take a look at that. |
here it is https://github.com/airbnb/enzyme/compare/eslint-markdown?expand=1 I've disabled some rules that arguably don't make too much sense for snippets (bringing the errors down to ~500) |
one thing to bear in mind is that eslint-plugin-markdown does not support |
Thanks, I'll do it manually this weekend; I can fix 500 eslint errors manually with my eyes closed :-p |
eheh good luck :) |
Done: #988 |
No description provided.