Skip to content

docs(eslint-plugin): [ban-ts-comment] fix wording of directive option descriptions#12467

Merged
JoshuaKGoldberg merged 1 commit into
typescript-eslint:mainfrom
zaewc:docs/12464
Jul 1, 2026
Merged

docs(eslint-plugin): [ban-ts-comment] fix wording of directive option descriptions#12467
JoshuaKGoldberg merged 1 commit into
typescript-eslint:mainfrom
zaewc:docs/12464

Conversation

@zaewc

@zaewc zaewc commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

PR Checklist

Overview

Fixes the schema description wording for the directive options of ban-ts-comment, which are surfaced both in the auto-generated Options section of the rule's docs page and as tooltips in editor autocomplete

The ts-expect-error description was broken in two ways:

  • the verb allow was missing ("Whether and when expect-error directives, …" isn't a grammatical sentence), and
  • the ts- prefix was missing (expect-error instead of ts-expect-error), unlike its three siblings

Per @kirkwaiblinger's review note on the issue, I fixed the ungrammatical "Whether allow …" on the other three options at the same time so all 4 are now consistent and grammatical:

Before After
ts-check Whether allow ts-check directives, and with which restrictions. Whether to allow ts-check directives, and with which restrictions.
ts-expect-error Whether and when expect-error directives, and with which restrictions. Whether to allow ts-expect-error directives, and with which restrictions.
ts-ignore Whether allow ts-ignore directives, and with which restrictions. Whether to allow ts-ignore directives, and with which restrictions.
ts-nocheck Whether allow ts-nocheck directives, and with which restrictions. Whether to allow ts-nocheck directives, and with which restrictions.

The ban-ts-comment schema snapshot was regenerated (vitest -u) to match; the docs page's Options section is generated from the schema at build time, so no static docs file needed editing

@typescript-eslint

Copy link
Copy Markdown
Contributor

Thanks for the PR, @zaewc!

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

netlify Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 07a5f2b
🔍 Latest deploy log https://app.netlify.com/projects/typescript-eslint/deploys/6a448e4dcde97b00085def01
😎 Deploy Preview https://deploy-preview-12467--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: 98 (🔴 down 1 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 90 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

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

@nx-cloud

nx-cloud Bot commented Jul 1, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 07a5f2b

Command Status Duration Result
nx run-many -t lint --projects=eslint-plugin --... ✅ Succeeded 57s View ↗
nx run-many -t lint --projects=typescript-estre... ✅ Succeeded 54s View ↗
nx run-many -t typecheck ✅ Succeeded 46s View ↗
nx run-many -t typecheck:tsgo ✅ Succeeded 49s View ↗
nx run types:build ✅ Succeeded 1s View ↗
nx run-many -t lint --projects=ast-spec,utils,s... ✅ Succeeded 29s View ↗
nx run-many -t lint --projects=parser,type-util... ✅ Succeeded 25s View ↗
nx run generate-configs ✅ Succeeded 5s View ↗
Additional runs (12) ✅ Succeeded ... View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-07-01 03:53:27 UTC

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.74%. Comparing base (f5e00c4) to head (07a5f2b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12467      +/-   ##
==========================================
+ Coverage   87.06%   94.74%   +7.68%     
==========================================
  Files         514      223     -291     
  Lines       16616    11426    -5190     
  Branches     5193     3809    -1384     
==========================================
- Hits        14467    10826    -3641     
+ Misses       1461      255    -1206     
+ Partials      688      345     -343     
Flag Coverage Δ
unittest 94.74% <ø> (+7.68%) ⬆️

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

Files with missing lines Coverage Δ
packages/eslint-plugin/src/rules/ban-ts-comment.ts 100.00% <ø> (ø)

... and 291 files with indirect coverage changes

🚀 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.

@StyleShit StyleShit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

@StyleShit StyleShit 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, 2026
@StyleShit StyleShit enabled auto-merge (squash) July 1, 2026 05:18

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yup, LGTM!

@zaewc I appreciate the attention to describing your changes, but there's no need to list out long PR bodies with tables of changes for something that changes a few words each in 4 docs lines 🙂. We touch on this in https://typescript-eslint.io/contributing/ai-policy - we're swamped by AI slop now, so anything you can do to trim that down would be much appreciated.

@JoshuaKGoldberg JoshuaKGoldberg disabled auto-merge July 1, 2026 12:12
@JoshuaKGoldberg JoshuaKGoldberg merged commit 04411cb into typescript-eslint:main Jul 1, 2026
43 checks passed
@zaewc

zaewc commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Yup, LGTM!

@zaewc I appreciate the attention to describing your changes, but there's no need to list out long PR bodies with tables of changes for something that changes a few words each in 4 docs lines 🙂. We touch on this in https://typescript-eslint.io/contributing/ai-policy - we're swamped by AI slop now, so anything you can do to trim that down would be much appreciated.

Thanks, that makes sense, sorry for the overly long Overview
I’ll keep small changes much more concise going forward

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.

Docs: [ban-ts-comment] ts-expect-error option description is inconsistent

3 participants