Skip to content

refactor(linter/config): do not import from globals.ts manually#22927

Merged
graphite-app[bot] merged 1 commit into
mainfrom
om/06-02-refactor_linter_config_do_not_import_from_globals.ts_manually
Jun 3, 2026
Merged

refactor(linter/config): do not import from globals.ts manually#22927
graphite-app[bot] merged 1 commit into
mainfrom
om/06-02-refactor_linter_config_do_not_import_from_globals.ts_manually

Conversation

@overlookmotel

@overlookmotel overlookmotel commented Jun 3, 2026

Copy link
Copy Markdown
Member

There's no need to import globals from globals.ts manually. TSDown plugin does this transform automatically. (I sense the hand of an LLM here)

@github-actions github-actions Bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins labels Jun 3, 2026

Copy link
Copy Markdown
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 changes, fast-track this PR to the front of the merge queue

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 June 3, 2026 00:14
@overlookmotel overlookmotel requested a review from camc314 as a code owner June 3, 2026 00:14
Copilot AI review requested due to automatic review settings June 3, 2026 00:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 aligns apps/oxlint/src-js with the existing TSDown replace_globals transform by removing the manual import of global wrappers from utils/globals.ts and using the corresponding native global property accesses (JSON.stringify, Date.now) directly.

Changes:

  • Removed manual imports of DateNow and JSONStringify from ./utils/globals.ts.
  • Replaced DateNow() with Date.now().
  • Replaced JSONStringify(...) with JSON.stringify(...) in config loader return paths.

@overlookmotel overlookmotel self-assigned this Jun 3, 2026
@graphite-app graphite-app Bot added the 0-merge Merge with Graphite Merge Queue label Jun 3, 2026
@graphite-app

graphite-app Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Merge activity

…2927)

There's no need to import globals from `globals.ts` manually. TSDown plugin does this transform automatically. (I sense the hand of an LLM here)
@graphite-app graphite-app Bot force-pushed the om/06-02-refactor_linter_config_do_not_import_from_globals.ts_manually branch from 5235247 to 1f96534 Compare June 3, 2026 00:53
@graphite-app graphite-app Bot merged commit 1f96534 into main Jun 3, 2026
27 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Jun 3, 2026
@graphite-app graphite-app Bot deleted the om/06-02-refactor_linter_config_do_not_import_from_globals.ts_manually branch June 3, 2026 00:58
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants