-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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: Fix custom rule schema docs #17115
docs: Fix custom rule schema docs #17115
Conversation
|
✅ Deploy Preview for docs-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Thanks for catching this! You're right, the docs are factually incorrect there. |
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.
The main change looks good to me, but I think we should keep the links.
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!
credits: https://github.com/domdomegg Refs: * #17225 * #17115
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[x] 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
[ ] Other, please explain:
What changes did you make? (Give an overview)
Corrected the docs to state that either way option schemas are specified, they should no longer include severities. This has been the behaviour since ESLint 2.x! (git blame shows that these lines haven't been changed for over 8 years, way back to ESLint 1.x).
I've also removed some superfluous content: the text after the code sample can be coalesced into the sentence before it, and the comment on how to learn about JSON schema is unnecessary given the link to the JSON Schema site can be updated to the learn page (which itself already contains the ebook recommendation). Removing this duplicated content makes it easier to quickly read, and avoid breaking up the content so developers don't miss the specific eslint gotchas (e.g. the
$ref
breaking).Is there anything you'd like reviewers to focus on?