Skip to content

Commit

Permalink
docs(eslint-plugin): [no-unnecessary-condition] tweak wording (#1147)
Browse files Browse the repository at this point in the history
Removes "looser/stricter" wording in favor of "more opinionated, less opinionated" and clarifies in what way `no-unnecessary-condition` is less opinionated.
  • Loading branch information
Retsam authored and bradzacher committed Oct 27, 2019
1 parent d4703e1 commit ab102c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin/docs/rules/no-unnecessary-condition.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ The main downside to using this rule is the need for type information.

## Related To

- ESLint: [no-constant-condition](https://eslint.org/docs/rules/no-constant-condition) - this rule is essentially a stronger version.
- ESLint: [no-constant-condition](https://eslint.org/docs/rules/no-constant-condition) - `no-unnecessary-condition` is essentially a stronger version of `no-constant-condition`, but requires type information.

- [strict-boolean-expression](./strict-boolean-expressions.md) - a stricter alternative to this rule.
- [strict-boolean-expressions](./strict-boolean-expressions.md) - a more opinionated version of `no-unnecessary-condition`. `strict-boolean-expressions` enforces a specific code style, while `no-unnecessary-condition` is about correctness.
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ Options may be provided as an object with:

- TSLint: [strict-boolean-expressions](https://palantir.github.io/tslint/rules/strict-boolean-expressions)

- [no-unnecessary-condition](./no-unnecessary-condition.md) - a looser alternative to this rule.
- [no-unnecessary-condition](./no-unnecessary-condition.md) - essentially a less opinionated alternative to this rule. `strict-boolean-expressions` enforces a specific code style, while `no-unnecessary-condition` is about correctness.

0 comments on commit ab102c0

Please sign in to comment.