Skip to content

test(linter/plugins): simplify tester script#18343

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/01-21-test_linter_plugins_simplify_tester_script
Jan 21, 2026
Merged

test(linter/plugins): simplify tester script#18343
graphite-app[bot] merged 1 commit intomainfrom
om/01-21-test_linter_plugins_simplify_tester_script

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jan 21, 2026

Simplify tester script. config is not needed any more. The conformance tests' version of RuleTester already enables eslintCompat option.

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins C-test Category - Testing. Code is missing test cases, or a PR is adding them labels Jan 21, 2026
Copy link
Member Author

overlookmotel commented Jan 21, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR simplifies the tester script by removing the unnecessary config parameter throughout the test execution flow. The conformance test version of RuleTester already enables eslintCompat via a registered hook, making the manual configuration redundant.

Changes:

  • Removed unused config variable declarations and parameter from test execution functions
  • Simplified runBoth and runOne function signatures by removing the obsolete config parameter
  • Cleaned up the RuleTester instantiation to use the default constructor

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@overlookmotel overlookmotel self-assigned this Jan 21, 2026
@overlookmotel overlookmotel removed the request for review from camc314 January 21, 2026 12:08
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Jan 21, 2026
@graphite-app
Copy link
Contributor

graphite-app bot commented Jan 21, 2026

Merge activity

Simplify tester script. `config` is not needed any more. The conformance tests' version of `RuleTester` already enables `eslintCompat` option.
@graphite-app graphite-app bot force-pushed the om/01-21-test_linter_plugins_improve_internal_types branch from f0e9bd4 to 4497f3d Compare January 21, 2026 12:19
@graphite-app graphite-app bot force-pushed the om/01-21-test_linter_plugins_simplify_tester_script branch from 687a0e8 to 7db6753 Compare January 21, 2026 12:19
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jan 21, 2026
Base automatically changed from om/01-21-test_linter_plugins_improve_internal_types to main January 21, 2026 12:25
@graphite-app graphite-app bot merged commit 7db6753 into main Jan 21, 2026
20 checks passed
@graphite-app graphite-app bot deleted the om/01-21-test_linter_plugins_simplify_tester_script branch January 21, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-test Category - Testing. Code is missing test cases, or a PR is adding them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants