fix: replace markdownlint-enable with markdownlint-restore to restore (vs. enable all) previous rules (fixes #276). (#278)

This commit is contained in:
David Anson 2020-08-14 02:18:31 -07:00 committed by GitHub
parent 3bb4a03008
commit 8af13c3f5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 9 deletions

View file

@ -145,7 +145,7 @@ Thanks goes to these wonderful people
</tr> </tr>
</table> </table>
<!-- markdownlint-enable --> <!-- markdownlint-restore -->
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END --> <!-- ALL-CONTRIBUTORS-LIST:END -->

View file

@ -18,7 +18,7 @@ These people contributed to the project:
</tr> </tr>
</table> </table>
<!-- markdownlint-enable --> <!-- markdownlint-restore -->
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END --> <!-- ALL-CONTRIBUTORS-LIST:END -->
@ -49,7 +49,7 @@ These people contributed to the project:
</tr> </tr>
</table> </table>
<!-- markdownlint-enable --> <!-- markdownlint-restore -->
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END --> <!-- ALL-CONTRIBUTORS-LIST:END -->

View file

@ -141,7 +141,7 @@ test('inject nothing if there are no contributors', () => {
'<!-- ALL-CONTRIBUTORS-LIST:START -->', '<!-- ALL-CONTRIBUTORS-LIST:START -->',
'<!-- prettier-ignore-start -->', '<!-- prettier-ignore-start -->',
'<!-- markdownlint-disable -->', '<!-- markdownlint-disable -->',
'<!-- markdownlint-enable -->', '<!-- markdownlint-restore -->',
'<!-- prettier-ignore-end -->', '<!-- prettier-ignore-end -->',
'<!-- ALL-CONTRIBUTORS-LIST:END -->', '<!-- ALL-CONTRIBUTORS-LIST:END -->',
'', '',

View file

@ -29,7 +29,7 @@ function injectListBetweenTags(newContent) {
'\n<!-- prettier-ignore-start -->', '\n<!-- prettier-ignore-start -->',
'\n<!-- markdownlint-disable -->', '\n<!-- markdownlint-disable -->',
newContent, newContent,
'<!-- markdownlint-enable -->', '<!-- markdownlint-restore -->',
'\n<!-- prettier-ignore-end -->', '\n<!-- prettier-ignore-end -->',
'\n', '\n',
previousContent.slice(startOfClosingTagIndex), previousContent.slice(startOfClosingTagIndex),

View file

@ -9,7 +9,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start --> <!-- prettier-ignore-start -->
<!-- markdownlint-disable --> <!-- markdownlint-disable -->
<!-- markdownlint-enable --> <!-- markdownlint-restore -->
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END --> <!-- ALL-CONTRIBUTORS-LIST:END -->
@ -27,7 +27,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start --> <!-- prettier-ignore-start -->
<!-- markdownlint-disable --> <!-- markdownlint-disable -->
<!-- markdownlint-enable --> <!-- markdownlint-restore -->
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END --> <!-- ALL-CONTRIBUTORS-LIST:END -->
@ -44,7 +44,7 @@ Description
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start --> <!-- prettier-ignore-start -->
<!-- markdownlint-disable --> <!-- markdownlint-disable -->
<!-- markdownlint-enable --> <!-- markdownlint-restore -->
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->" <!-- ALL-CONTRIBUTORS-LIST:END -->"
`; `;

View file

@ -13,7 +13,7 @@ const listContent = [
'<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->', '<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->',
'<!-- prettier-ignore-start -->', '<!-- prettier-ignore-start -->',
'<!-- markdownlint-disable -->', '<!-- markdownlint-disable -->',
'<!-- markdownlint-enable -->', '<!-- markdownlint-restore -->',
'<!-- prettier-ignore-end -->', '<!-- prettier-ignore-end -->',
'<!-- ALL-CONTRIBUTORS-LIST:END -->', '<!-- ALL-CONTRIBUTORS-LIST:END -->',
].join('\n') ].join('\n')