-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(eslint-plugin): added new rule no-dynamic-delete #565
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
feat(eslint-plugin): added new rule no-dynamic-delete #565
Conversation
Adds the equivalent of TSLint's `no-dynamic-delete`.
Codecov Report
@@ Coverage Diff @@
## master #565 +/- ##
==========================================
+ Coverage 93.98% 94.01% +0.03%
==========================================
Files 121 122 +1
Lines 5217 5246 +29
Branches 1444 1453 +9
==========================================
+ Hits 4903 4932 +29
Misses 179 179
Partials 135 135
|
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.
Nice work @JoshuaKGoldberg.
Looking at the requirements for the implementation, I think this rule is entirely syntactic.
In such cases it is hugely more performant to not leverage parserServices.
Please can you refactor this to use the TSESTree AST instead of requiring TSNodes?
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.
code LGTM and tests seem pretty comprehensive.
thanks for doing this.
…com/JoshuaKGoldberg/typescript-eslint into typescript-eslint-no-dynamic-delete
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.
LGTM! Thanks
Adds the equivalent of TSLint's
no-dynamic-delete
.