Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Configs: [no-unnecessary-type-conversion] add to strict-type-checked ruleset #11374

Open
Labels
accepting prsGo ahead, send a pull request that resolves this issuepackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginpreset config changeProposal for an addition, removal, or general change to a preset config
@skondrashov

Description

@skondrashov

Before You File a Proposal Please Confirm You Have Done The Following...

Description

I feel like the same reasoning applies as for something likeno-unnecessary-condition. It seems like thestrict-type-checked ruleset is for projects where types can be trusted, and in those projects, it makes sense to forbid any kind of type guard, assertion, or really any code that only affects types which can be removed without causing a ts error, and that clearly includes this rule.

Impacted Configurations

Juststrict-type-checked, I believe.

Additional Info

I proposed/helped write the rule, so I'm of course biased.

I don't know the considerations for adding a rule to a preset configuration, but assuming risk is a factor, I think that even though the rule is only a couple of months old, it is based heavily on existing code, I have been using it myself without issues, and there has only been one minor bug report for it (#11192), so it seems safe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuepackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginpreset config changeProposal for an addition, removal, or general change to a preset config

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp