🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@y-hsgw
Copy link
Contributor

@y-hsgw y-hsgw commented Oct 25, 2025

PR Checklist

Overview

The previous PR #11616 was reverted after a discussion in #11662 pointing out that the name argument in withoutDocs should be optional.
This PR reintroduces the change from #11616 while keeping name optional.

🍂

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @y-hsgw!

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.

@netlify
Copy link

netlify bot commented Oct 25, 2025

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 28af1c9
🔍 Latest deploy log https://app.netlify.com/projects/typescript-eslint/deploys/69376dfd75dc850008d5fcc8
😎 Deploy Preview https://deploy-preview-11719--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 (🔴 down 2 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (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 project configuration.

@y-hsgw y-hsgw changed the title Feat/add name to rulemodule feat(eslint-plugin): expose rule name via RuleModule interface Oct 25, 2025
@nx-cloud
Copy link

nx-cloud bot commented Oct 25, 2025

View your CI Pipeline Execution ↗ for commit 28af1c9

Command Status Duration Result
nx test eslint-plugin --coverage=false ✅ Succeeded 4m 50s View ↗
nx run-many -t lint ✅ Succeeded 3m 12s View ↗
nx run-many -t typecheck ✅ Succeeded 2m 8s View ↗
nx test eslint-plugin-internal --coverage=false ✅ Succeeded 10s View ↗
nx test typescript-estree --coverage=false ✅ Succeeded 2s View ↗
nx run generate-configs ✅ Succeeded 8s View ↗
nx run integration-tests:test ✅ Succeeded 3s View ↗
nx run types:build ✅ Succeeded 2s View ↗
Additional runs (29) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2025-12-09 00:43:40 UTC

@codecov
Copy link

codecov bot commented Oct 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.54%. Comparing base (32b7e89) to head (28af1c9).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11719   +/-   ##
=======================================
  Coverage   90.53%   90.54%           
=======================================
  Files         523      523           
  Lines       53096    53101    +5     
  Branches     8838     8838           
=======================================
+ Hits        48073    48082    +9     
+ Misses       5010     5006    -4     
  Partials       13       13           
Flag Coverage Δ
unittest 90.54% <100.00%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
packages/rule-tester/src/RuleTester.ts 73.93% <100.00%> (+0.02%) ⬆️
packages/utils/src/eslint-utils/RuleCreator.ts 93.75% <100.00%> (+9.65%) ⬆️
🚀 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.

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.

Thanks for restarting this! Could you please add tests ensuring the regressions noted in #11608 & linked don't happen again?

@JoshuaKGoldberg JoshuaKGoldberg added the awaiting response Issues waiting for a reply from the OP or another party label Nov 3, 2025
@y-hsgw
Copy link
Contributor Author

y-hsgw commented Nov 3, 2025

I’ve added tests. 91e97bc

@github-actions github-actions bot removed the awaiting response Issues waiting for a reply from the OP or another party label Nov 3, 2025
@JoshuaKGoldberg JoshuaKGoldberg added the awaiting response Issues waiting for a reply from the OP or another party label Nov 18, 2025
@kirkwaiblinger kirkwaiblinger removed the awaiting response Issues waiting for a reply from the OP or another party label Dec 6, 2025
kirkwaiblinger
kirkwaiblinger previously approved these changes Dec 6, 2025
@kirkwaiblinger kirkwaiblinger added the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Dec 6, 2025
@y-hsgw y-hsgw requested a review from kirkwaiblinger December 7, 2025 05:53
@github-actions github-actions bot removed the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Dec 7, 2025
Comment on lines 93 to 96
return {
...ruleWithDocs,
name,
};
Copy link
Member

Choose a reason for hiding this comment

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

Seems like overkill to make another runtime change here just to satisfy the checker.

Maybe we just use an assertion here?

Suggested change
return {
...ruleWithDocs,
name,
};
return ruleWithDocs as typeof ruleWithDocs & { name: string };

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed it in 28af1c9.

kirkwaiblinger
kirkwaiblinger previously approved these changes Dec 8, 2025
@kirkwaiblinger kirkwaiblinger added the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.

[feature request] Expose the rule name as a property

3 participants