Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gajus/eslint-plugin-jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Oct 26, 2021
2 parents abd1514 + 30ec1d5 commit 23578a9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/noMultiAsterisks.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import iterateJsdoc from '../iterateJsdoc';

const middleAsterisks = /^[* \t]+/u;
const middleAsterisks = /^([\t ]|\*(?!\*))+/u;

export default iterateJsdoc(({
context,
Expand Down
16 changes: 16 additions & 0 deletions test/rules/assertions/noMultiAsterisks.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,5 +344,21 @@ export default {
}
`,
},
{
code: `
/**
* **Bold**
*/
`,
},
{
code: `
/**
* Preserve user's bold statement when fixing.
*
* **Bold example:** Hi there.
*/
`,
},
],
};

0 comments on commit 23578a9

Please sign in to comment.