Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(eslint-plugin): use correct type for return type ofcreateValidator#11721

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@ulrichstark
Copy link
Contributor

PR Checklist

Overview

While working on#11720, I noticed that the return type of the function is typed as a callback with one parameter, but is actually returning a callback with two parameters. It's now using the correct type and simultaneously with five lines less code.

Rel1cx reacted with thumbs up emoji
@typescript-eslint
Copy link
Contributor

Thanks for the PR,@ulrichstark!

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 onhttps://opencollective.com/typescript-eslint.

@netlify
Copy link

netlifybot commentedOct 25, 2025
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit6c795d7
🔍 Latest deploy loghttps://app.netlify.com/projects/typescript-eslint/deploys/68fd5021083bfd00086574dc
😎 Deploy Previewhttps://deploy-preview-11721--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
Accessibility: 97
Best Practices: 100
SEO: 92
PWA: 80
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to yourNetlify project configuration.

@nx-cloud
Copy link

nx-cloudbot commentedOct 25, 2025
edited
Loading

🤖 Nx Cloud AI Fix Eligible

An automatically generated fix could have helped fix failing tasks for this run, but Self-healing CI is disabled for this workspace. Visit workspace settings to enable it and get automatic fixes in future runs.

To disable these notifications, a workspace admin can disable themin workspace settings.


View yourCI Pipeline Execution ↗ for commit6c795d7

CommandStatusDurationResult
nx run integration-tests:test❌ Failed52sView ↗
nx test eslint-plugin --coverage=false✅ Succeeded4m 58sView ↗
nx run-many -t lint✅ Succeeded3m 4sView ↗
nx run-many -t typecheck✅ Succeeded2m 8sView ↗
nx test eslint-plugin-internal --coverage=false✅ Succeeded5sView ↗
nx test typescript-estree --coverage=false✅ Succeeded2sView ↗
nx run types:build✅ Succeeded6sView ↗
nx run generate-configs✅ Succeeded8sView ↗
Additional runs (29)✅ Succeeded...View ↗

☁️Nx Cloud last updated this comment at2025-10-25 22:45:15 UTC

@codecov
Copy link

codecovbot commentedOct 25, 2025
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.66%. Comparing base (55ca033) to head (6c795d7).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@##             main   #11721      +/-   ##==========================================- Coverage   90.66%   90.66%   -0.01%==========================================  Files         518      518                Lines       52415    52412       -3       Branches     8678     8678              ==========================================- Hits        47521    47518       -3  Misses       4880     4880                Partials       14       14
FlagCoverage Δ
unittest90.66% <100.00%> (-0.01%)⬇️

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

Files with missing linesCoverage Δ
...gin/src/rules/naming-convention-utils/validator.ts98.37% <100.00%> (-0.02%)⬇️
🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ulrichstarkulrichstark changed the titlerefactor(eslint-plugin): use correct type for return type ofcreateValidatorchore(eslint-plugin): use correct type for return type ofcreateValidatorOct 25, 2025
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

⚡ thanks!

ulrichstark reacted with rocket emoji
@JoshuaKGoldbergJoshuaKGoldberg merged commitea2ee6b intotypescript-eslint:mainNov 3, 2025
65 of 70 checks passed
@ulrichstarkulrichstark deleted the use-validatorfunction-type branchNovember 4, 2025 07:23
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ulrichstark@JoshuaKGoldberg

[8]ページ先頭

©2009-2025 Movatter.jp