This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 889
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update rule description & failure string
- Updated the description and failure string of prefer-while - Updated tests accordingly
- Loading branch information
1 parent
180190d
commit ec8b337
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
for(;;) { | ||
~~~~~~~ [Expected a 'while' loop instead of a 'for' loop without an initializer and incrementor] | ||
~~~~~~~ [Prefer `while` loops instead of `for` loops without an initializer and incrementor.] | ||
console.log(x); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
for(;true===true;) { | ||
~~~~~~~~~~~~~~~~~~ [Expected a 'while' loop instead of a 'for' loop without an initializer and incrementor] | ||
~~~~~~~~~~~~~~~~~~ [Prefer `while` loops instead of `for` loops without an initializer and incrementor.] | ||
console.log(x); | ||
} |