-
Notifications
You must be signed in to change notification settings - Fork 0
fix: prefer-const rule and enable ast-grep postinstall #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- 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 |
There was a problem hiding this comment.
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/*" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Changes
for (let i = 0; ...))*.gen.ts,worker-configuration.d.ts)