Skip to content

chore(eslint-plugin): re-using logic from builtinSymbolLike in no-implied-eval #9462

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

Merged
merged 6 commits into from
Jul 5, 2024

Conversation

YutongZhuu
Copy link
Contributor

@YutongZhuu YutongZhuu commented Jul 1, 2024

PR Checklist

Overview

I use the function in isBuiltinSymbolLike.ts to replace similar logic. But I am passing a string 'FunctionConstructor' to a function instead of Function since there is a test case where the symbol name is FunctionConstructor. I am not sure if this is the right thing to do.

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @YutongZhuu!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint.

Copy link

netlify bot commented Jul 1, 2024

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 346072d
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/6682e65ad7e4ca00088553e5
😎 Deploy Preview https://deploy-preview-9462--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 95 (🟢 up 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 90 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@YutongZhuu YutongZhuu changed the title Chore(eslint-plugin): re-using logic from builtinSymbolLike in no-implied-eval chore(eslint-plugin): re-using logic from builtinSymbolLike in no-implied-eval Jul 1, 2024
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.26%. Comparing base (2865d31) to head (346072d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9462   +/-   ##
=======================================
  Coverage   88.26%   88.26%           
=======================================
  Files         417      417           
  Lines       14413    14406    -7     
  Branches     4208     4205    -3     
=======================================
- Hits        12721    12716    -5     
  Misses       1372     1372           
+ Partials      320      318    -2     
Flag Coverage Δ
unittest 88.26% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ackages/eslint-plugin/src/rules/no-implied-eval.ts 100.00% <100.00%> (+3.07%) ⬆️

Copy link
Member

@auvred auvred left a comment

Choose a reason for hiding this comment

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

Looks good! Just requesting to remove an unnecessary eslint-disable directive.

@@ -76,14 +76,8 @@ export default createRule({
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison

It looks like this eslint-disable directive is no longer required.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed :)

@auvred auvred added the awaiting response Issues waiting for a reply from the OP or another party label Jul 1, 2024
@YutongZhuu YutongZhuu requested a review from auvred July 1, 2024 17:00
@github-actions github-actions bot removed the awaiting response Issues waiting for a reply from the OP or another party label Jul 1, 2024
Copy link
Member

@auvred auvred left a comment

Choose a reason for hiding this comment

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

💯

@auvred auvred added the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Jul 1, 2024
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

🧹✨

@JoshuaKGoldberg JoshuaKGoldberg merged commit a1a9b09 into typescript-eslint:main Jul 5, 2024
63 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Repo: reuse newly added "is builtin symbol like" logic from type-utils
3 participants