Content-Length: 2468 | pFad | http://github.com/typescript-eslint/typescript-eslint/pull/10033.patch

thub.com 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. :::








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/typescript-eslint/typescript-eslint/pull/10033.patch

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy