Skip to content

chore(lint): fix the last warning and fail lint on any warning - #458

Merged
yakew7 merged 1 commit into
yakew7:mainfrom
minutechreview:chore/lint-max-warnings-441
Oct 28, 2026
Merged

yakew7 merged 1 commit into
yakew7:mainfrom
minutechreview:chore/lint-max-warnings-441

Conversation

@minutechreview

Copy link
Copy Markdown
Contributor

Closes #441

pnpm lint ended with one warning, from the import() type annotation in lib/color/matrix.test.ts. This fixes it and makes any warning fail lint.

  • lib/color/matrix.test.ts: import type * as ColorModule and importOriginal<typeof ColorModule>() instead of the inline import() type.
  • package.json: lint is now eslint . --max-warnings 0. lint.yml already runs pnpm lint, so the workflow fails on a warning without being edited.
  • CONTRIBUTING.md: the pnpm lint row says a warning fails it.

How I checked it:

  • pnpm lint prints no warnings and exits 0.
  • Putting the old import() annotation back makes pnpm lint exit 1 with "ESLint found too many warnings (maximum: 0)".
  • pnpm typecheck && pnpm test && pnpm lint && pnpm format:check && pnpm check:dashes && pnpm build passes (133 test files, 2692 tests).

Signed-off-by: minutechreview <141821420+minutechreview@users.noreply.github.com>
@vercel

vercel Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

@minutechreview is attempting to deploy a commit to the yashkewlani2020-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@yakew7
yakew7 merged commit d69aee9 into yakew7:main Oct 28, 2026
8 of 9 checks passed
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.

Lint: fix the last warning and fail CI on any warning

2 participants