Skip to content

πŸ› Bug: CI-only lint:docs failure in blockESLintPlugin repositoryΒ #2197

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

https://github.com/bingo-examples/eslint-plugin-cta-example was generated with roughly:

npx create-typescript-app --preset everything --add-eslint-plugin --exclude-example-files --directory eslint-plugin-cta-example --title eslint-plugin-cta-example --description "Example ESLint plugin built with create-typescript-app. πŸ”Œ"

It should pass all package scripts locally and in CI once all repository tokens are populated.

Actual

lint:docs is failing only in CI. Example from https://github.com/bingo-examples/eslint-plugin-cta-example/actions/runs/14361036702/job/40262335756:

> eslint-doc-generator --check

Please run eslint-doc-generator. A rule doc is out-of-date: docs/rules/enums.md
- Expected
+ Received

  # enums

- πŸ’Ό This rule is enabled in the βœ… `recommended` config.
-
  <!-- end auto-generated rule header -->

Please run eslint-doc-generator. The rules table in README.md is out-of-date.
- Expected
+ Received

@@ -3[9](https://github.com/bingo-examples/eslint-plugin-cta-example/actions/runs/14361036702/job/40262335756#step:5:10),16 +39,13 @@

  These are all set to `"error"` in the recommended config:

  <!-- begin auto-generated rules list -->

- πŸ’Ό Configurations enabled in.\
- βœ… Set in the `recommended` configuration.
-
- | Name                         | Description                     | πŸ’Ό  |
- | :--------------------------- | :------------------------------ | :-- |
- | [enums](docs/rules/enums.md) | Avoid using TypeScript's enums. | βœ…  |
+ | Name                         | Description                     |
+ | :--------------------------- | :------------------------------ |
+ | [enums](docs/rules/enums.md) | Avoid using TypeScript's enums. |

  <!-- end auto-generated rules list -->

  ## Development

Additional Info

I don't know why this is happening. The package does build in CI with pnpm build --no-dts before running pnpm lint:docs. I've even tried a fresh clone of the repo locally - no reproducible complaints.

🎁

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send a pull request to resolve this!type: bugSomething isn't working :(

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions