Skip to content

Commit 04d1bd0

Browse files
docs: mark allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing options as deprecated (#9914)
1 parent dc549b8 commit 04d1bd0

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

packages/eslint-plugin/docs/rules/no-unnecessary-condition.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ do {} while (true);
9191

9292
### `allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing`
9393

94+
:::danger Deprecated
95+
This option will be removed in the next major version of typescript-eslint.
96+
:::
97+
9498
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`.
9599

96100
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 useless.

packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,11 @@ Also, if you would like to ignore all primitives types, you can set `ignorePrimi
174174

175175
### `allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing`
176176

177-
Unless this is set to `true`, the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`.
177+
:::danger Deprecated
178+
179+
> This option will be removed in the next major version of typescript-eslint.
180+
> :::
181+
> Unless this is set to `true`, the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`.
178182
179183
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 useless.
180184

packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@ Set this to `true` at your own risk.
144144

145145
### `allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing`
146146

147-
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`.
147+
:::danger Deprecated
148+
149+
> This option will be removed in the next major version of typescript-eslint.
150+
> :::
151+
> 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`.
148152
149153
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.
150154

0 commit comments

Comments
 (0)