-
-
Notifications
You must be signed in to change notification settings - Fork 118
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: show red underlines in examples in rules docs #273
Conversation
✅ Deploy Preview for eslint-stylistic ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #273 +/- ##
=======================================
Coverage 99.79% 99.79%
=======================================
Files 114 114
Lines 26699 26699
Branches 4490 4490
=======================================
Hits 26645 26645
Misses 54 54 ☔ View full report in Codecov by Sentry. |
Very cool! 🔥 |
docs/package.json
Outdated
@@ -4,23 +4,24 @@ | |||
"private": true, | |||
"scripts": { | |||
"docs:dev": "vitepress dev", | |||
"docs:build": "vitepress build", | |||
"docs:build": "cd .. && pnpm run build && cd docs && vitepress build", |
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.
I modified the script so that it can be built with Netlify. There may be a better way than that.
That's a very interesting idea and I think it's even deserved to be a general transformer/integration similar to TwoSlash - where it could be possible to us as a part of tests as well. I'll think about the design a bit |
Description
This PR implements ShikijiTransformer to indicate with a red marker where an error occurs in the example rules document.
Example:

Linked Issues
None.
Additional context
I would like to hear your opinion on displaying markers in documents.
This is my first time implementing ShikijiTransformer, so I'm still not sure if this PR will work.
I have submitted a PR to ESLint that does something similar.
eslint/eslint#18041
I would like to hear your opinion on the marker style.