Skip to content

Commit

Permalink
fix: make all-contributors output prettier compliant. (#283)
Browse files Browse the repository at this point in the history
Fixes #441
  • Loading branch information
melink14 committed Sep 16, 2020
1 parent 0c75595 commit 1affe41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/generate/__tests__/__snapshots__/index.js.snap
Expand Up @@ -20,6 +20,7 @@ These people contributed to the project:
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
Thanks a lot everyone!"
Expand Down Expand Up @@ -51,6 +52,7 @@ These people contributed to the project:
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
Thanks a lot everyone!"
Expand Down
1 change: 1 addition & 0 deletions src/generate/__tests__/index.js
Expand Up @@ -143,6 +143,7 @@ test('inject nothing if there are no contributors', () => {
'<!-- markdownlint-disable -->',
'<!-- markdownlint-restore -->',
'<!-- prettier-ignore-end -->',
'',
'<!-- ALL-CONTRIBUTORS-LIST:END -->',
'',
'Thanks a lot everyone!',
Expand Down
2 changes: 1 addition & 1 deletion src/generate/index.js
Expand Up @@ -31,7 +31,7 @@ function injectListBetweenTags(newContent) {
newContent,
'<!-- markdownlint-restore -->',
'\n<!-- prettier-ignore-end -->',
'\n',
'\n\n',
previousContent.slice(startOfClosingTagIndex),
].join('')
}
Expand Down

0 comments on commit 1affe41

Please sign in to comment.