Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Nov 11, 2025

Follow-on after #15593 and #15600. Use // prettier-ignore comments in test fixture files to prevent them being formatted, where formatting would break the test.

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Nov 11, 2025
Copy link
Member Author


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.

@overlookmotel overlookmotel marked this pull request as ready for review November 11, 2025 16:38
Copilot AI review requested due to automatic review settings November 11, 2025 16:38
@overlookmotel overlookmotel self-assigned this Nov 11, 2025
@overlookmotel overlookmotel added A-linter-plugins Area - Linter JS plugins 0-merge Merge with Graphite Merge Queue and removed A-linter Area - Linter labels Nov 11, 2025
Copy link
Member Author

overlookmotel commented Nov 11, 2025

Merge activity

Copilot finished reviewing on behalf of overlookmotel November 11, 2025 16:39
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 adds // prettier-ignore comments to test fixture files to prevent Prettier from automatically formatting code that needs specific formatting for testing purposes. The changes remove manual assertions that checked for accidental formatting, replacing them with a preventive approach using Prettier's ignore directive.

  • Added // prettier-ignore comments before lines in test fixtures that require specific formatting
  • Removed assertion code in plugin.ts that manually verified fixtures weren't formatted
  • Updated snapshot files to reflect the new line numbers and content after adding the ignore comments

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
apps/oxlint/test/fixtures/isSpaceBetween/files/index.js Added // prettier-ignore comments before each test case to preserve intentional spacing
apps/oxlint/test/fixtures/isSpaceBetween/output.snap.md Updated snapshot with new line numbers and prettier-ignore comments
apps/oxlint/test/fixtures/estree/files/index.ts Added // prettier-ignore comments before parenthesized expressions that must be preserved
apps/oxlint/test/fixtures/estree/plugin.ts Removed manual assertion checks for formatting, now relying on prettier-ignore
apps/oxlint/test/fixtures/estree/output.snap.md Updated snapshot with new line numbers and prettier-ignore comments

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

Follow-on after #15593 and #15600. Use `// prettier-ignore` comments in test fixture files to prevent them being formatted, where formatting would break the test.
@graphite-app graphite-app bot force-pushed the 11-11-style_linter_plugins_use_prettier-ignore_in_test_fixtures branch from eb1a844 to 74033bd Compare November 11, 2025 16:42
@github-actions github-actions bot added the A-linter Area - Linter label Nov 11, 2025
@graphite-app graphite-app bot merged commit 74033bd into main Nov 11, 2025
18 checks passed
@graphite-app graphite-app bot deleted the 11-11-style_linter_plugins_use_prettier-ignore_in_test_fixtures branch November 11, 2025 16:48
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 11, 2025
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-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants