Skip to content

Conversation

mdjermanovic
Copy link
Member

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:

Multiple rule configuration comments in the same example may lead to the conclusion that it is possible to reconfigure the rule for a part of the code, which is not true because the last comment applies to the entire code.

What changes did you make? (Give an overview)

  • Updated tools/check-rule-examples.js to disallow multiple rule configuration comments.
  • Updated examples in two rules.

Is there anything you'd like reviewers to focus on?

@mdjermanovic mdjermanovic requested a review from a team as a code owner February 13, 2024 11:38
Copy link

netlify bot commented Feb 13, 2024

Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit d14e21b
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/65cb54c588ca240008b48845
😎 Deploy Preview https://deploy-preview-18116--docs-eslint.netlify.app
📱 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 configuration.

@eslint-github-bot eslint-github-bot bot added the documentation Relates to ESLint's documentation label Feb 13, 2024
@mdjermanovic mdjermanovic added the accepted There is consensus among the team that this change meets the criteria for inclusion label Feb 13, 2024
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM. Would like @fasttime to review before merging.

@nzakas nzakas requested a review from fasttime February 13, 2024 17:45
Copy link
Member

@harish-sethuraman harish-sethuraman left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@fasttime fasttime 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!

@fasttime fasttime merged commit f95cd27 into main Feb 14, 2024
@fasttime fasttime deleted the docs-dupe-eslint-comments branch February 14, 2024 10:47
@eslint-github-bot eslint-github-bot bot locked and limited conversation to collaborators Aug 13, 2024
@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 Aug 13, 2024
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

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants