mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 05:36:21 +00:00
fix: make all-contributors output prettier compliant. (#283)
Fixes #441
This commit is contained in:
parent
0c75595156
commit
1affe41308
3 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,7 @@ These people contributed to the project:
|
|||
|
||||
<!-- markdownlint-restore -->
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
||||
|
||||
Thanks a lot everyone!"
|
||||
|
@ -51,6 +52,7 @@ These people contributed to the project:
|
|||
|
||||
<!-- markdownlint-restore -->
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
||||
|
||||
Thanks a lot everyone!"
|
||||
|
|
|
@ -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!',
|
||||
|
|
|
@ -31,7 +31,7 @@ function injectListBetweenTags(newContent) {
|
|||
newContent,
|
||||
'<!-- markdownlint-restore -->',
|
||||
'\n<!-- prettier-ignore-end -->',
|
||||
'\n',
|
||||
'\n\n',
|
||||
previousContent.slice(startOfClosingTagIndex),
|
||||
].join('')
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue