@typescript-eslint/no-dynamic-delete#481
Conversation
Summary of ChangesHello @ScriptedAlchemy, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request ports the @typescript-eslint/no-dynamic-delete rule. The implementation is clean and follows the project's structure. The added tests are comprehensive. I've found a minor correctness issue in handling parenthesized numeric literals and also a small suggestion to improve performance by defining the rule message as a package-level variable to avoid repeated allocations.
internal/plugins/typescript/rules/no_dynamic_delete/no_dynamic_delete.go
Outdated
Show resolved
Hide resolved
internal/plugins/typescript/rules/no_dynamic_delete/no_dynamic_delete.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Ports the @typescript-eslint/no-dynamic-delete rule into this codebase (implementation + registration), and enables/extends the cross-runner test coverage to validate behavior against the TypeScript ESLint rule expectations.
Changes:
- Added the
no-dynamic-deleterule implementation, documentation, and Go rule-tester coverage. - Registered the rule under
@typescript-eslint/no-dynamic-deletein the global TypeScript ESLint plugin registry. - Enabled and expanded the
rslint-test-toolsTypeScript test and added its snapshot output.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| rslint.json | Adds the new rule to the example/config ruleset (defaulted to off). |
| packages/rslint-test-tools/tests/typescript-eslint/rules/no-dynamic-delete.test.ts | Adds an additional invalid test case for dynamic delete. |
| packages/rslint-test-tools/tests/typescript-eslint/rules/snapshots/no-dynamic-delete.test.ts.snap | Introduces the snapshot baselines for the test suite output. |
| packages/rslint-test-tools/rstest.config.mts | Enables running the no-dynamic-delete test in the rstest suite. |
| internal/plugins/typescript/rules/no_dynamic_delete/no_dynamic_delete.go | Implements the rule logic and diagnostic reporting. |
| internal/plugins/typescript/rules/no_dynamic_delete/no_dynamic_delete_test.go | Adds Go-based rule tester coverage (valid/invalid cases + locations). |
| internal/plugins/typescript/rules/no_dynamic_delete/no_dynamic_delete.md | Adds rule documentation and a link to upstream docs. |
| internal/config/config.go | Registers @typescript-eslint/no-dynamic-delete in the rule registry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Deploying rslint with
|
| Latest commit: |
c560257
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://38a89728.rslint.pages.dev |
| Branch Preview URL: | https://codex-ts-eslint-no-dynamic-d.rslint.pages.dev |
…namic-delete-51aa # Conflicts: # rslint.json
…namic-delete-51aa # Conflicts: # rslint.json
…namic-delete-51aa # Conflicts: # rslint.json
Summary: Port @typescript-eslint/no-dynamic-delete from ScriptedAlchemy#13.
Related Links:
Checklist: