Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3c22d2a

Browse files
authored
docs: updateyoda toYoda inyoda.md for consistency (#19230)
1 parente0a2203 commit3c22d2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎docs/src/rules/yoda.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ This rule can take a string option:
4343

4444
The default`"never"` option can have exception options in an object literal:
4545

46-
* If the`"exceptRange"` property is`true`, the rule*allows*yoda conditions in range comparisons which are wrapped directly in parentheses, including the parentheses of an`if` or`while` condition. The default value is`false`. A*range* comparison tests whether a variable is inside or outside the range between two literal values.
47-
* If the`"onlyEquality"` property is`true`, the rule reportsyoda conditions*only* for the equality operators`==` and`===`. The default value is`false`.
46+
* If the`"exceptRange"` property is`true`, the rule*allows*Yoda conditions in range comparisons which are wrapped directly in parentheses, including the parentheses of an`if` or`while` condition. The default value is`false`. A*range* comparison tests whether a variable is inside or outside the range between two literal values.
47+
* If the`"onlyEquality"` property is`true`, the rule reportsYoda conditions*only* for the equality operators`==` and`===`. The default value is`false`.
4848

4949
The`onlyEquality` option allows a superset of the exceptions which`exceptRange` allows, thus both options are not useful together.
5050

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp