Skip to content

fix: ignore workflows-repo in eslint config#104

Merged
eablack merged 1 commit into
mainfrom
fix/eslint-ignore-workflows-repo
Jun 9, 2026
Merged

fix: ignore workflows-repo in eslint config#104
eablack merged 1 commit into
mainfrom
fix/eslint-ignore-workflows-repo

Conversation

@eablack

@eablack eablack commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The Release workflow checks out heroku/npm-release-workflows into ./workflows-repo before running npm run lint. Because eslint . walks the whole tree, it lints the workflow repo's own source and fails with 158 errors (single-quote rules, node: protocol, etc.).
  • Add workflows-repo/** to eslint.config.mjs ignores so lint scopes to this package's files only.

Test plan

  • Locally created a workflows-repo/ directory with a deliberately bad .mjs file and ran npm run lint; output now reports only the 4 pre-existing warnings in src/index.ts (0 errors).
  • Re-run the Release workflow to confirm the validate step passes.

The release workflow checks out heroku/npm-release-workflows into
./workflows-repo, causing `eslint .` to lint that repo's source files
and fail with 158 errors. Ignore the directory so lint scopes to this
package only.
@eablack eablack requested a review from a team as a code owner June 9, 2026 22:04

@michaelmalave michaelmalave left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@eablack eablack merged commit 934feea into main Jun 9, 2026
7 checks passed
@eablack eablack deleted the fix/eslint-ignore-workflows-repo branch June 9, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants