Skip to content
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

JoshuaKGoldberg
Copy link
Member

Adds the equivalent of TSLint's no-dynamic-delete.

Josh Goldberg added 2 commits May 27, 2019 16:39
@codecov
Copy link

codecov bot commented May 28, 2019

Codecov Report

Merging #565 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            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
Impacted Files Coverage Δ
...kages/eslint-plugin/src/rules/no-dynamic-delete.ts 100% <100%> (ø)
packages/eslint-plugin/src/rules/index.ts 100% <100%> (ø) ⬆️

@bradzacher bradzacher added the enhancement: new plugin rule New rule request for eslint-plugin label May 28, 2019
Copy link
Member

@JamesHenry JamesHenry left a 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?

@JamesHenry JamesHenry added the awaiting response Issues waiting for a reply from the OP or another party label Jul 12, 2019
@bradzacher bradzacher removed the awaiting response Issues waiting for a reply from the OP or another party label Aug 7, 2019
Copy link
Member

@bradzacher bradzacher left a 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.

@bradzacher bradzacher added the 1 approval PR that a maintainer has LGTM'd - any maintainer can merge this when ready label Aug 9, 2019
@bradzacher bradzacher added awaiting response Issues waiting for a reply from the OP or another party and removed 1 approval PR that a maintainer has LGTM'd - any maintainer can merge this when ready labels Aug 10, 2019
@bradzacher bradzacher removed the awaiting response Issues waiting for a reply from the OP or another party label Oct 2, 2019
Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks

@bradzacher bradzacher merged commit 864c811 into typescript-eslint:master Nov 12, 2019
@JoshuaKGoldberg JoshuaKGoldberg deleted the typescript-eslint-no-dynamic-delete branch November 12, 2019 02:57
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement: new plugin rule New rule request for eslint-plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants