Skip to content

refactor(linter/plugins): simplify scope analyse options#18305

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

refactor(linter/plugins): simplify scope analyse options#18305
graphite-app[bot] merged 1 commit intomainfrom
om/01-20-refactor_linter_plugins_simplify_scope_analyse_options

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jan 20, 2026

Pure refactor. Simplify initialization of analyzeOptions passed to TS-ESLint scope analyzer. Also fill in all the options, and order properties in same order as the AnalyzeOptions type.

Copy link
Member Author

overlookmotel commented Jan 20, 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.

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Jan 20, 2026
@overlookmotel overlookmotel marked this pull request as ready for review January 20, 2026 18:17
Copilot AI review requested due to automatic review settings January 20, 2026 18:18
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 refactors the initialization of analyzeOptions passed to the TS-ESLint scope analyzer by simplifying the type and providing complete property initialization with proper defaults.

Changes:

  • Removed unused imports (typeAssertIs, SetNullable)
  • Changed analyzeOptions type from SetNullable<AnalyzeOptions, "sourceType"> to AnalyzeOptions with all properties explicitly defined
  • Added missing properties (childVisitorKeys, impliedStrict, emitDecoratorMetadata) with appropriate default values
  • Reordered properties to match the AnalyzeOptions type definition order
  • Removed unnecessary typeAssertIs call since the object now has the correct type from initialization

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

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

graphite-app bot commented Jan 20, 2026

Merge activity

Pure refactor. Simplify initialization of `analyzeOptions` passed to TS-ESLint scope analyzer. Also fill in all the options, and order properties in same order as the `AnalyzeOptions` type.
@graphite-app graphite-app bot force-pushed the om/01-20-refactor_linter_plugins_simplify_scope_analyse_options branch from 05ca76d to 1691891 Compare January 20, 2026 18:25
@graphite-app graphite-app bot merged commit 1691891 into main Jan 20, 2026
19 checks passed
@graphite-app graphite-app bot deleted the om/01-20-refactor_linter_plugins_simplify_scope_analyse_options branch January 20, 2026 18:32
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jan 20, 2026
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