Skip to content

Conversation

@AnirudhOH
Copy link

This pull request updates the TypeScript ESLint configuration to enforce the use of the as syntax for type assertions instead of the angle-bracket style. This change is reflected both in the main configuration and in the test snapshot to ensure consistency.

ESLint configuration update:

  • Changed the @typescript-eslint/consistent-type-assertions rule to require the as assertion style instead of the angle-bracket style in index.js.

Test snapshot update:

  • Updated the corresponding rule in test/rules-snapshot.json to match the new as assertion style.

@AnirudhOH AnirudhOH requested review from Copilot and mderazon October 1, 2025 08:03
@AnirudhOH AnirudhOH self-assigned this Oct 1, 2025
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 pull request updates the TypeScript ESLint configuration to enforce the as syntax for type assertions instead of angle-bracket syntax, promoting modern TypeScript practices.

  • Changed @typescript-eslint/consistent-type-assertions rule from angle-bracket to as assertion style
  • Updated test snapshot to reflect the configuration change

Reviewed Changes

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

File Description
index.js Updated ESLint rule configuration to enforce as assertion style
test/rules-snapshot.json Updated test snapshot to match new assertion style configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@AnirudhOH AnirudhOH marked this pull request as draft October 1, 2025 08:10
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