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

Enhancement: Remove allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing #9891

Open
Labels
accepting prsGo ahead, send a pull request that resolves this issuebreaking changeThis change will require a new major version to be releasedenhancementNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Milestone
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Overview

An option namedallowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing exists in three rules:

Each comes with a very stern explanation of why not to use it:

WithoutstrictNullChecks, TypeScript essentially erasesundefined andnull from the types. This means when this rule inspects the types from a variable,it will not be able to tell that the variable might benull orundefined, which essentially makes this rule a lot less useful.

It's bugged me for a while that we've kept these options around. They add bloat to the docs and rule logic. And practically nobody uses them.

A Sourcegraph search forallowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing shows only 3 public repos visibly using setting it totrue - and 5 setting it tofalse.

Proposal: let's...

  1. Deprecate the options as a non-breaking change now
  2. Remove them in the next major version with functional changes

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebreaking changeThis change will require a new major version to be releasedenhancementNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp