mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 13:36:29 +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 -->
|
<!-- markdownlint-restore -->
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
||||||
|
|
||||||
Thanks a lot everyone!"
|
Thanks a lot everyone!"
|
||||||
|
@ -51,6 +52,7 @@ These people contributed to the project:
|
||||||
|
|
||||||
<!-- markdownlint-restore -->
|
<!-- markdownlint-restore -->
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
||||||
|
|
||||||
Thanks a lot everyone!"
|
Thanks a lot everyone!"
|
||||||
|
|
|
@ -143,6 +143,7 @@ test('inject nothing if there are no contributors', () => {
|
||||||
'<!-- markdownlint-disable -->',
|
'<!-- markdownlint-disable -->',
|
||||||
'<!-- markdownlint-restore -->',
|
'<!-- markdownlint-restore -->',
|
||||||
'<!-- prettier-ignore-end -->',
|
'<!-- prettier-ignore-end -->',
|
||||||
|
'',
|
||||||
'<!-- ALL-CONTRIBUTORS-LIST:END -->',
|
'<!-- ALL-CONTRIBUTORS-LIST:END -->',
|
||||||
'',
|
'',
|
||||||
'Thanks a lot everyone!',
|
'Thanks a lot everyone!',
|
||||||
|
|
|
@ -31,7 +31,7 @@ function injectListBetweenTags(newContent) {
|
||||||
newContent,
|
newContent,
|
||||||
'<!-- markdownlint-restore -->',
|
'<!-- markdownlint-restore -->',
|
||||||
'\n<!-- prettier-ignore-end -->',
|
'\n<!-- prettier-ignore-end -->',
|
||||||
'\n',
|
'\n\n',
|
||||||
previousContent.slice(startOfClosingTagIndex),
|
previousContent.slice(startOfClosingTagIndex),
|
||||||
].join('')
|
].join('')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue