Skip to content

fix: allow RuleTester to test files inside node_modules/ - #19499

Merged
nzakas merged 4 commits into
eslint:mainfrom
fisker:19471
Mar 11, 2025
Merged

nzakas merged 4 commits into
eslint:mainfrom
fisker:19471

Conversation

@fisker

@fisker fisker commented Mar 11, 2025

Copy link
Copy Markdown
Contributor

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[x] 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)

Stop applying default ignores to RuleTester.
Fixes #19471

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

No

@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage Mar 11, 2025
@eslint-github-bot eslint-github-bot Bot added the bug ESLint is working incorrectly label Mar 11, 2025
@github-actions github-actions Bot added the core Relates to ESLint's core APIs and features label Mar 11, 2025
@netlify

netlify Bot commented Mar 11, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for docs-eslint canceled.

Name Link
🔨 Latest commit 0ce9cb9
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/67d04c42a7152600085cb837

@fisker fisker mentioned this pull request Mar 11, 2025
1 task done
@fisker
fisker marked this pull request as ready for review March 11, 2025 07:25
@fisker
fisker requested a review from a team as a code owner March 11, 2025 07:25
@fisker fisker changed the title fix: allow test files inside node_modules/ fix: allow test files inside node_modules/ in RuleTester Mar 11, 2025
@fisker fisker changed the title fix: allow test files inside node_modules/ in RuleTester fix: allow RuleTester to test files inside node_modules/ Mar 11, 2025
Comment thread tests/lib/rule-tester/rule-tester.js Resolved
Comment thread tests/lib/rule-tester/rule-tester.js Resolved
@mdjermanovic mdjermanovic moved this from Needs Triage to Implementing in Triage Mar 11, 2025
@mdjermanovic mdjermanovic added accepted There is consensus among the team that this change meets the criteria for inclusion contributor pool labels Mar 11, 2025
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>

@mdjermanovic mdjermanovic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks! Would like @nzakas to verify.

@mdjermanovic mdjermanovic moved this from Implementing to Second Review Needed in Triage Mar 11, 2025

@nzakas nzakas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks.

@nzakas
nzakas merged commit f4e9c5f into eslint:main Mar 11, 2025
@github-project-automation github-project-automation Bot moved this from Second Review Needed to Complete in Triage Mar 11, 2025
@fisker
fisker deleted the 19471 branch March 11, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted There is consensus among the team that this change meets the criteria for inclusion bug ESLint is working incorrectly contributor pool core Relates to ESLint's core APIs and features

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

Bug: Can't test cases that filename contains node_modules/

3 participants