Skip to content

Commit

Permalink
refactor(check-line-alignment): drop redundant replacements per `co…
Browse files Browse the repository at this point in the history
…mment-parser` update
  • Loading branch information
brettz9 committed Feb 7, 2021
1 parent 7e0bbbe commit 9f757aa
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/rules/checkLineAlignment.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,7 @@ const checkAlignment = ({

const comment = '/*' + jsdocNode.value + '*/';
const formatted = utils.stringify(transformedJsdoc)
.trimStart()

// Temporary until comment-parser fix: https://github.com/syavorsky/comment-parser/issues/119
.replace(/\s+\n/g, '\n')

// Temporary until comment-parser fix: https://github.com/syavorsky/comment-parser/issues/120
.replace(/(\n\s+)\*\s+@/g, '$1* @');
.trimStart();

if (comment !== formatted) {
report(
Expand Down

0 comments on commit 9f757aa

Please sign in to comment.