Skip to content

Conversation

michaelfaith
Copy link
Contributor

@michaelfaith michaelfaith commented Aug 5, 2025

This change adds typescript-eslint to our config and fixes a miss in the original TypeScript migration where we weren't linting the newly renamed ts files.

This also addresses violations found from both sets of config changes.

Closes #543

This change adds typescript-eslint to our config and fixes a miss in the original TypeScript migration where we weren't linting the newly renamed `ts` files.

This also addresses violations found from both sets of config changes.
}
},
};
},
};
} satisfies Rule.RuleModule;
Copy link
Member

Choose a reason for hiding this comment

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

It seems like we're mixing commonjs syntax and TypeScript in this example, which is a bit odd. Can we choose one:

  • commonjs with the jsdoc types
  • or ESM TypeScript and include any imports for the types

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Definitely agree with you there. The docs are a bit all over the place, with different people writing them at different points in time. It would benefit from someone going through all of them, with a focus on making them consistent (which I'm also happy to do). I don't think that's really in the scope of this change, though, which is just focused on enabling the eslint plugin. I had to touch this file, to address a violation. Would you prefer I change it to js here, and remove the satisfies?

Copy link
Member

@bmish bmish Aug 7, 2025

Choose a reason for hiding this comment

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

Leaving it as cjs would be best then.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated. I changed the examples to js and put the type annotation back in.

Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

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

Thanks!

@bmish bmish merged commit 18f9ae6 into eslint-community:main Aug 7, 2025
6 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.

Add typescript-eslint to repo lint config
2 participants