Skip to content

docs: simplify gitignore path handling in includeIgnoreFile section #19596

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

Merged
merged 1 commit into from
Apr 3, 2025

Conversation

tbroyer
Copy link
Contributor

@tbroyer tbroyer commented Apr 3, 2025

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)

There's no need to resort to node:path to resolve relative paths; as new URL() can do it, particularly given that we start from a URL with import.meta.url.
The code currently in the docs is reminiscent of how you'd handle that in a commonjs module, only slightly adapted to make it work in esm, rather than "ported" to esm idioms.

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

@tbroyer tbroyer requested a review from a team as a code owner April 3, 2025 08:13
@eslint-github-bot eslint-github-bot bot added the documentation Relates to ESLint's documentation label Apr 3, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Apr 3, 2025
Copy link

linux-foundation-easycla bot commented Apr 3, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

Copy link

netlify bot commented Apr 3, 2025

Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit 700377d
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/67ee433e2d91200008be582f
😎 Deploy Preview https://deploy-preview-19596--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.

@mdjermanovic mdjermanovic moved this from Needs Triage to Evaluating in Triage Apr 3, 2025
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 803e4af into eslint:main Apr 3, 2025
32 checks passed
@github-project-automation github-project-automation bot moved this from Evaluating to Complete in Triage Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Relates to ESLint's documentation
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

2 participants