Skip to content

Commit

Permalink
chore: add static frontmatter to no-constant-binary-expression docs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Apr 22, 2022
1 parent ab6363d commit 735458c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions docs/src/rules/no-constant-binary-expression.md
@@ -1,4 +1,9 @@
# no-constant-binary-expression
---
title: no-constant-binary-expression
layout: doc
edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-constant-binary-expression.md
rule_type: problem
---

Disallows expressions where the operation doesn't affect the value.

Expand Down Expand Up @@ -67,4 +72,4 @@ const arrIsEmpty = someArr.length === 0;
Related Rules:
* [no-constant-condition](no-constant-condition.md)
* [no-constant-condition](no-constant-condition)
2 changes: 1 addition & 1 deletion docs/src/rules/no-constant-condition.md
Expand Up @@ -135,4 +135,4 @@ do {

## Related Rules

* [no-constant-binary-expression](no-constant-binary-expression.md)
* [no-constant-binary-expression](no-constant-binary-expression)

0 comments on commit 735458c

Please sign in to comment.