Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(
newline-after-description
): only treat comments with whitespace…
… after two asterisks only as jsdoc Per jsdoc spec at https://jsdoc.app/about-getting-started.html : > Each comment must start with a /** sequence in order to be recognized by the JSDoc parser. Comments beginning with /*, /***, or more than 3 stars will be ignored.
- Loading branch information
Showing
4 changed files
with
23 additions
and
3 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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ export default { | |
invalid: [ | ||
{ | ||
code: ` | ||
/*** foo */ | ||
/** foo */ | ||
function quux () { | ||
} | ||
|
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 |
---|---|---|
|
@@ -287,5 +287,17 @@ export default { | |
*/\r | ||
`, | ||
}, | ||
{ | ||
code: ` | ||
/*** | ||
* | ||
*/ | ||
function quux () { | ||
}`, | ||
options: [ | ||
'always', | ||
], | ||
}, | ||
], | ||
}; |