Skip to content
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

Merged
merged 2 commits into from Apr 25, 2023

Conversation

domdomegg
Copy link
Contributor

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?

@domdomegg domdomegg requested a review from a team as a code owner April 24, 2023 17:52
@eslint-github-bot eslint-github-bot bot added the documentation Relates to ESLint's documentation label Apr 24, 2023
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Apr 24, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: domdomegg / name: Adam Jones (f8917d5)

@netlify
Copy link

netlify bot commented Apr 24, 2023

Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit 343e4e2
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/64479ce4b82dc9000811a0a0
😎 Deploy Preview https://deploy-preview-17115--docs-eslint.netlify.app/extend/custom-rules
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@mdjermanovic mdjermanovic added the accepted There is consensus among the team that this change meets the criteria for inclusion label Apr 24, 2023
@mdjermanovic
Copy link
Member

Corrected the docs to state that either way option schemas are specified, they should no longer include severities.

Thanks for catching this! You're right, the docs are factually incorrect there.

Copy link
Member

@mdjermanovic mdjermanovic left a 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.

docs/src/extend/custom-rules.md Outdated Show resolved Hide resolved
docs/src/extend/custom-rules.md Show resolved Hide resolved
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mdjermanovic mdjermanovic merged commit af5fe64 into eslint:main Apr 25, 2023
22 checks passed
@domdomegg domdomegg deleted the docs-custom-rules-schemas branch April 25, 2023 12:18
aladdin-add pushed a commit to aladdin-add/eslint that referenced this pull request Jun 15, 2023
aladdin-add added a commit to aladdin-add/eslint that referenced this pull request Jun 15, 2023
@eslint-github-bot eslint-github-bot bot locked and limited conversation to collaborators Oct 23, 2023
@eslint-github-bot eslint-github-bot bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Oct 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion documentation Relates to ESLint's documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants