From f1652af7b3337e322db20b55393913e120485a69 Mon Sep 17 00:00:00 2001 From: Kirk Waiblinger Date: Sat, 21 Sep 2024 11:12:22 -0600 Subject: [PATCH 1/2] docs: [strict-boolean-expressions] fix adominition --- .../eslint-plugin/docs/rules/strict-boolean-expressions.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx b/packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx index 9323c6351e5a..fd00bf080b77 100644 --- a/packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx +++ b/packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx @@ -147,8 +147,10 @@ Set this to `true` at your own risk. :::danger Deprecated > This option will be removed in the next major version of typescript-eslint. -> ::: -> If this is set to `false`, then the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`. + +::: + +If this is set to `false`, then the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`. Without `strictNullChecks`, TypeScript essentially erases `undefined` and `null` 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 be `null` or `undefined`**, which essentially makes this rule a lot less useful. From dbfc5f43676427d7a30cb61e98f4625dd57d32f8 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Sat, 21 Sep 2024 16:30:35 -0400 Subject: [PATCH 2/2] Update packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx --- .../eslint-plugin/docs/rules/strict-boolean-expressions.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx b/packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx index fd00bf080b77..820d4d188d4e 100644 --- a/packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx +++ b/packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx @@ -146,7 +146,7 @@ Set this to `true` at your own risk. :::danger Deprecated -> This option will be removed in the next major version of typescript-eslint. +This option will be removed in the next major version of typescript-eslint. ::: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy