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
Docs: Add linting to rule doc example code blocks (1 of 3) (refs #2271) #3487
Conversation
Nice! I like it. |
😲 👍 🎉 |
I had to turn off linting for rule |
Would moving the line endings into informational comments work? It wouldn't change the meaning of the examples, but it would make them valid JS. |
@btmills, I like that idea. That's what I'll do. |
Just a heads up - the longer this sits, the harder it will be to merge. :) |
I understand, but I'm not just sitting on it. I've been spending several hours a night on it, and am maybe 30% done at this point. 😞 I've been rebasing periodically, and so far it doesn't have any problems. I'll give it a good once-over when I'm complete to make sure I've not missed anything that's been added. I'm hoping to have it done within another week or two. |
A bit of a snag: some rule examples require
|
I followed @btmills advice for |
No worries, just wanted to flag that. You might want to consider ways of doing partial commits to limit the merge conflict likelihood. "Big bang" commits are almost always a bad idea. :) |
OK. I'm happy to split into a few commits if that's an option. It would actually be good to at least see how this looks in some rules on the site, too. I'm about half-way through, so I'll squash and rebase with just the rule changes so as not to break the build. After that's merged, I'll finish up the rule changes and finally add the changes to |
OK, tracking in: #2271 (comment) |
0be0a8a
to
a952fd9
Compare
…xtra-semi' (refs #2271)
@@ -6,3 +6,10 @@ indent_size = 4 | |||
trim_trailing_whitespace = true | |||
end_of_line = lf | |||
insert_final_newline = true | |||
|
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.
Nice touch!
LGTM for the first batch |
Docs: Add linting to rule doc example code blocks (1 of 3) (refs #2271)
This is a work in progress, and will take some time to complete. However, if anyone has feedback on this, please speak up now before I go through all 170-something rules. :)
One specific item: some of the lines get pretty long with these expected errors. I'm not sure how that will look on the eslint.org site. Is there a way to check that?