Skip to content

refactor(linter): allow marking rule as a tsgolint rule#12890

Merged
Boshen merged 1 commit intomainfrom
08-07-refactor_linter_allow_marking_rule_as_tsgolint_rule
Aug 8, 2025
Merged

refactor(linter): allow marking rule as a tsgolint rule#12890
Boshen merged 1 commit intomainfrom
08-07-refactor_linter_allow_marking_rule_as_tsgolint_rule

Conversation

@camchenry
Copy link
Member

@camchenry camchenry commented Aug 7, 2025

Making it easier to add new tsgolint rules, which will make this more favorable for implementing new rules with AI to speed up importing all the type-aware rules. Adds the ability to add a (tsgolint) marker in the declare_oxc_lint! macro which generates the necessary code.

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

camchenry commented Aug 7, 2025


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.

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 7, 2025

CodSpeed Instrumentation Performance Report

Merging #12890 will not alter performance

Comparing 08-07-refactor_linter_allow_marking_rule_as_tsgolint_rule (e21a5a0) with main (65e2112)

Summary

✅ 34 untouched benchmarks

@camchenry camchenry marked this pull request as ready for review August 7, 2025 21:43
@camchenry camchenry requested a review from camc314 as a code owner August 7, 2025 21:43
Copy link
Member

@Boshen Boshen left a comment

Choose a reason for hiding this comment

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

I'll amend some changes later today.

@Boshen Boshen self-assigned this Aug 8, 2025
@camchenry camchenry force-pushed the 08-07-refactor_linter_allow_marking_rule_as_tsgolint_rule branch from 9edc413 to 91a784e Compare August 8, 2025 00:09
@Boshen Boshen changed the base branch from 08-07-fix_linter_resolve_configured_rules_for_every_file_linted_by_tsgolint_ to graphite-base/12890 August 8, 2025 05:35
@Boshen Boshen force-pushed the graphite-base/12890 branch from 6eefea8 to 65e2112 Compare August 8, 2025 05:35
@Boshen Boshen force-pushed the 08-07-refactor_linter_allow_marking_rule_as_tsgolint_rule branch from 91a784e to e21a5a0 Compare August 8, 2025 05:35
@Boshen Boshen changed the base branch from graphite-base/12890 to main August 8, 2025 05:35
@Boshen Boshen changed the title refactor(linter): allow marking rule as tsgolint rule refactor(linter): allow marking rule as type-aware Aug 8, 2025
@Boshen
Copy link
Member

Boshen commented Aug 8, 2025

Decided not to change anything.

@Boshen Boshen changed the title refactor(linter): allow marking rule as type-aware refactor(linter): allow marking rule as tsgolint Aug 8, 2025
@Boshen Boshen changed the title refactor(linter): allow marking rule as tsgolint refactor(linter): allow marking rule as a tsgolint rule Aug 8, 2025
@Boshen Boshen merged commit 9e3963f into main Aug 8, 2025
33 of 53 checks passed
@Boshen Boshen deleted the 08-07-refactor_linter_allow_marking_rule_as_tsgolint_rule branch August 8, 2025 05:46
taearls pushed a commit to taearls/oxc that referenced this pull request Aug 12, 2025
…12890)

Making it easier to add new `tsgolint` rules, which will make this more
favorable for implementing new rules with AI to speed up importing all
the type-aware rules. Adds the ability to add a `(tsgolint)` marker in
the `declare_oxc_lint!` macro which generates the necessary code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter 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