-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
docs: fix formatting of unordered lists in Markdown #19660
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
Conversation
✅ Deploy Preview for docs-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
docs/src/extend/plugins.md
Outdated
::: tip | ||
While there are no restrictions on plugin names, it helps others to find your plugin on [npm](https://npmjs.com) when you follow these naming conventions: | ||
|
||
- **Unscoped:** If your npm package name won't be scoped (doesn't begin with `@`), then the plugin name should begin with `eslint-plugin-`, such as `eslint-plugin-example`. | ||
- **Scoped:** If your npm package name will be scoped, then the plugin name should be in the format of `@<scope>/eslint-plugin-<plugin-name>` such as `@jquery/eslint-plugin-jquery` or even `@<scope>/eslint-plugin` such as `@jquery/eslint-plugin`. | ||
::: | ||
- **Unscoped:** If your npm package name won't be scoped (doesn't begin with `@`), then the plugin name should begin with `eslint-plugin-`, such as `eslint-plugin-example`. | ||
- **Scoped:** If your npm package name will be scoped, then the plugin name should be in the format of `@<scope>/eslint-plugin-<plugin-name>` such as `@jquery/eslint-plugin-jquery` or even `@<scope>/eslint-plugin` such as `@jquery/eslint-plugin`. | ||
::: |
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.
Looks like this fixed a bug we didn't notice on https://eslint.org/docs/latest/extend/plugins.
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.
Added a blank line before :::
in 4ae7544 to fix its indentation and ensure this doesn't happen again.
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
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:
Fixes formatting of unordered lists in all .md files.
In #19628, we upgraded Prettier from v3.3.3 to v3.5.3. In Prettier v3.4.0, a bug with excessive spaces after line prefixes for unordered lists in Markdown has been fixed (https://prettier.io/blog/2024/11/26/3.4.0.html#markdown). As our CI apparently doesn't check the formatting of the entire codebase but just modified files, after merging #19628 a lot of .md files have become incorrectly formatted per Prettier v3.5.3. This is causing problems like:
What changes did you make? (Give an overview)
npm i prettier --no-save
).npx prettier --write "**/*.md"
.Is there anything you'd like reviewers to focus on?