Enable typescript/no-unnecessary-type-assertion oxlint rule#510
Enable typescript/no-unnecessary-type-assertion oxlint rule#510
typescript/no-unnecessary-type-assertion oxlint rule#510Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
typescript/no-unnecessary-type-assertion oxlint rule
Co-authored-by: stipsan <81981+stipsan@users.noreply.github.com>
Co-authored-by: stipsan <81981+stipsan@users.noreply.github.com>
4c80e5e to
f5db85c
Compare
There was a problem hiding this comment.
Pull request overview
This PR enables the typescript/no-unnecessary-type-assertion oxlint rule to catch redundant type assertions that don't actually change the expression type, helping maintain cleaner TypeScript code.
Changes:
- Added the
typescript/no-unnecessary-type-assertionrule configuration to the oxlint configuration file
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Enables the
typescript/no-unnecessary-type-assertionrule to prevent redundant type assertions that don't change the expression type.Changes
typescript/no-unnecessary-type-assertion: errorto.oxlintrc.jsonNo violations found in the current codebase. The rule will now catch issues like:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
sanity-cdn.com/usr/local/bin/node node /home/REDACTED/work/plugins/plugins/dev/test-studio/node_modules/.bin/../sanity/bin/sanity build git k/pl�� --git-common-dir(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
typescript/no-unnecessary-type-assertionoxlint rule #465💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.