From 82d3e4012d7f25d0ef1d79b788a65744c2b4537c Mon Sep 17 00:00:00 2001 From: Jack Bates Date: Wed, 23 Feb 2022 10:31:06 -0700 Subject: [PATCH] Add settings for enforced styles to presets --- .../index.js | 15 ++++++++++++++- packages/remark-preset-lint-recommended/index.js | 6 +++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/packages/remark-preset-lint-markdown-style-guide/index.js b/packages/remark-preset-lint-markdown-style-guide/index.js index adb0ad29..7ca81129 100644 --- a/packages/remark-preset-lint-markdown-style-guide/index.js +++ b/packages/remark-preset-lint-markdown-style-guide/index.js @@ -285,7 +285,20 @@ const remarkPresetLintMarkdownStyleGuide = { // https://cirosantilli.com/markdown-style-guide/#email-automatic-links. // Not checked. - ] + ], + settings: { + bullet: '-', + bulletOrdered: '.', + emphasis: '*', + fence: '`', + fences: true, + incrementListMarker: false, + listItemIndent: 'mixed', + quote: '"', + rule: '-', + setext: false, + strong: '*' + } } export default remarkPresetLintMarkdownStyleGuide diff --git a/packages/remark-preset-lint-recommended/index.js b/packages/remark-preset-lint-recommended/index.js index dae28742..14fa577e 100644 --- a/packages/remark-preset-lint-recommended/index.js +++ b/packages/remark-preset-lint-recommended/index.js @@ -48,7 +48,11 @@ const remarkPresetLintRecommended = { remarkLintNoShortcutReferenceLink, remarkLintNoUndefinedReferences, remarkLintNoUnusedDefinitions - ] + ], + settings: { + bulletOrdered: '.', + listItemIndent: 'tab' + } } export default remarkPresetLintRecommended