Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

The mapESLintTemplate parameter is now optional with a default value of 'vanilla-ts'. This change simplifies the API by removing the need to explicitly provide a null mapping in test cases.

Copilot AI review requested due to automatic review settings December 4, 2025 06:28
Copy link
Contributor

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 simplifies the API by making the mapESLintTemplate parameter optional with a default value of 'vanilla-ts'. This eliminates the need for test cases to explicitly provide () => null mappings when they don't need ESLint template customization.

Key changes:

  • Made mapESLintTemplate parameter optional in the create function
  • Added default behavior that uses 'vanilla-ts' when no custom mapping is provided
  • Removed redundant mapESLintTemplate: () => null from test cases that don't use ESLint

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/index.ts Made mapESLintTemplate optional and implemented default 'vanilla-ts' behavior with JSDoc documentation
test/custom-tools.test.ts Removed unnecessary mapESLintTemplate: () => null from two test cases that don't use ESLint
test/agents.test.ts Removed unnecessary mapESLintTemplate: () => null from three test cases that don't use ESLint

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@chenjiahan chenjiahan merged commit e80696f into main Dec 4, 2025
4 checks passed
@chenjiahan chenjiahan deleted the map_eslint_optional_1204 branch December 4, 2025 06:33
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