Skip to content

Conversation

@lumirlumir
Copy link
Member

Prerequisites checklist

What is the purpose of this pull request?

This PR is a follow-up to eslint/rewrite#338.

I've added the arethetypeswrong check to CI to validate package types, using eslint and eslint-config-eslint from the main repo as examples (https://github.com/eslint/eslint/blob/v10.0.0-alpha.1/.github/workflows/types-integration.yml#L181-L210).

I also removed a redundant npm run build after npm install from the workflows, since it already runs during prepare.

"prepare": "npm run build",

What changes did you make? (Give an overview)

In this PR, I've added the arethetypeswrong check to CI to validate package types.

Related Issues

N/A

Is there anything you'd like reviewers to focus on?

N/A

@eslintbot eslintbot added this to Triage Dec 9, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Dec 9, 2025
"scripts": {
"lint": "eslint && eslint -c eslint.config-content.js",
"lint:fix": "eslint --fix && eslint --fix -c eslint.config-content.js",
"lint:types": "attw --pack --profile esm-only",
Copy link
Member Author

Choose a reason for hiding this comment

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

Currently, the @eslint/markdown package is ESM-only, so I added the --profile esm-only option.

@lumirlumir lumirlumir marked this pull request as ready for review December 9, 2025 07:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds the arethetypeswrong package validation tool to CI workflows, following the pattern established in the main ESLint repository. The implementation adds automated type definition checking to catch potential issues with package exports and TypeScript types before publishing.

  • Added @arethetypeswrong/cli as a dev dependency with the lint:types npm script
  • Created a new are-the-types-wrong CI job to validate package type definitions
  • Removed redundant npm run build commands from CI workflows since build runs automatically via the prepare script during npm install

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
package.json Added @arethetypeswrong/cli dependency and lint:types script for type validation
.github/workflows/ci.yml Added new are-the-types-wrong job and removed redundant build steps from test_types and jsr_test jobs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@nzakas nzakas merged commit d22de7d into main Dec 10, 2025
32 checks passed
@nzakas nzakas deleted the ci-run-arethetypewrong-in-ci branch December 10, 2025 15:48
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

3 participants