Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Nov 13, 2025

Explanation

The ESLint rule jsdoc/check-tag-names mangles a lot of comment blocks we have for types. The types are currently written in a way that doesn't comply with the TSDoc spec, and we should fix them, but leaving the rule enabled (even with error suppression!) prevents us from using --fix.

The rule has been selectively disabled in each file that has malformed doc blocks impacted by this problem. We can remove these files one-by-one as we fix the inline docs.

References

Relates to #6790

These changes were extracted from the draft PR #7148

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Note

Disables jsdoc/check-tag-names for specific files via ESLint overrides and updates warning thresholds accordingly.

  • ESLint Configuration:
    • Remove global jsdoc/check-tag-names warning from TypeScript rules.
    • Add targeted override disabling jsdoc/check-tag-names for specific files (e.g., various controllers, message-manager files, tests).
  • Warning Thresholds:
    • Update eslint-warning-thresholds.json to drop jsdoc/check-tag-names entries for affected files.
    • Minor cleanup to reflect current active rules (e.g., TokensController.ts, siwe.ts, tests/fake-provider.ts).

Written by Cursor Bugbot for commit bc83018. This will update automatically on new commits. Configure here.

@Gudahtt Gudahtt force-pushed the disable-check-tag-names branch from ac83629 to 628ee38 Compare November 13, 2025 14:00
@Gudahtt Gudahtt changed the title chore: Disable jsodc/check-tag-names ESLint rule chore: Selectively disable jsodc/check-tag-names ESLint rule Nov 13, 2025
@Gudahtt Gudahtt force-pushed the disable-check-tag-names branch from 628ee38 to 2177cb5 Compare November 13, 2025 14:02
@Gudahtt Gudahtt marked this pull request as ready for review November 13, 2025 14:07
The ESLint rule `jsdoc/check-tag-names` mangles a lot of comment blocks
we have for types. The types are currently written in a way that
doesn't comply with the TSDoc spec, and we should fix them, but leaving
the rule enabled (even with error suppression!) prevents us from
using `--fix`.
@Gudahtt Gudahtt force-pushed the disable-check-tag-names branch from 2177cb5 to bc83018 Compare November 13, 2025 14:17
'import-x/namespace': 'warn',
'import-x/no-named-as-default': 'warn',
'import-x/order': 'warn',
'jsdoc/check-tag-names': 'warn',
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to confirm, this will error by default now (excluding the files listed below)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, exactly

@Gudahtt Gudahtt merged commit d1b61a7 into main Nov 13, 2025
271 checks passed
@Gudahtt Gudahtt deleted the disable-check-tag-names branch November 13, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants