⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@o-az
Copy link
Member

@o-az o-az commented Jan 22, 2026

Changes

  • Fix prefer-const false positive on for-loop initializers (e.g. for (let i = 0; ...))
  • Add global ignores for generated files (*.gen.ts, worker-configuration.d.ts)
  • Fix ast-grep CLI installation by enabling its postinstall script

o-az and others added 2 commits January 22, 2026 15:01
- Exclude for-loop initializers from prefer-const (false positive fix)
- Add global ignores for *.gen.ts and worker-configuration.d.ts
- Fix ast-grep/cli postinstall by allowing its build scripts

Amp-Thread-ID: https://ampcode.com/threads/T-019be7df-0b62-704c-8066-02dbd318743b
Co-authored-by: Amp <amp@ampcode.com>
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
Copy link
Contributor

Choose a reason for hiding this comment

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

🙇

uses: actions/setup-node@v6
with:
node-version: "20"
node-version: "lts/*"
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

severity: warning
language: typescript
ignores:
- "**/*.gen.ts"
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

not:
follows:
pattern: $NAME = $OTHER
any:
Copy link
Contributor

Choose a reason for hiding this comment

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

could we add a test for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@o-az o-az requested a review from brendanjryan January 23, 2026 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants