Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable @typescript-eslint/no-unnecessary-type-assertion #333

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mcmire
Copy link
Contributor

@mcmire mcmire commented Oct 31, 2023

This rule, as we've discovered after running it against the core monorepo, seems to produce false negatives. If you look at the issues list for the typescript-eslint repo and filter by this rule, you'll notice that other people have reported this as well. As a result, it's not worth enabling right now.

**This change is breaking.**

We could bump this monorepo to Node 18, but since these packages are
heavily depended upon, we don't need to do that yet until we've
confirmed all other projects are using 18.

Using the LTS version of Node puts us on a more modern version for
development (and also happens to fix the `.nvmrc` file so `asdf` can
read it).
This rule, as we've discovered after running it against the `core`
monorepo, seems to produce false negatives. If you look at the issues
list for the `typescript-eslint` repo and filter by this rule, you'll
notice that [other people have reported this as well][1]. As a result,
it's not worth enabling right now.

[1]: https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+is%3Aopen+no-unnecessary-type-assertion+sort%3Aupdated-desc
Base automatically changed from bump-node-to-16 to main December 1, 2023 21:27
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.

None yet

1 participant