Skip to content

Commit

Permalink
fix: ensure bad JSDoc blocks do not cause errors (outside of `no-bad-…
Browse files Browse the repository at this point in the history
…blocks`); fixes #853
  • Loading branch information
brettz9 committed Mar 19, 2022
1 parent 63d18d2 commit 17fe2ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -9576,6 +9576,9 @@ function quux (foo) {
* @callback
* @param {number} foo
*/

/*** Oops that's too many asterisks by accident **/
function a () {}
````


Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -5,7 +5,7 @@
"url": "http://gajus.com"
},
"dependencies": {
"@es-joy/jsdoccomment": "~0.22.0",
"@es-joy/jsdoccomment": "~0.22.1",
"comment-parser": "1.3.1",
"debug": "^4.3.4",
"escape-string-regexp": "^4.0.0",
Expand Down
6 changes: 6 additions & 0 deletions test/rules/assertions/noTypes.js
Expand Up @@ -268,5 +268,11 @@ export default {
*/
`,
},
{
code: `
/*** Oops that's too many asterisks by accident **/
function a () {}
`,
},
],
};

0 comments on commit 17fe2ca

Please sign in to comment.