Skip to content

Commit

Permalink
Add settings for enforced styles to presets
Browse files Browse the repository at this point in the history
  • Loading branch information
jablko committed Mar 31, 2022
1 parent f0d6517 commit 82d3e40
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
15 changes: 14 additions & 1 deletion packages/remark-preset-lint-markdown-style-guide/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion packages/remark-preset-lint-recommended/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ const remarkPresetLintRecommended = {
remarkLintNoShortcutReferenceLink,
remarkLintNoUndefinedReferences,
remarkLintNoUnusedDefinitions
]
],
settings: {
bulletOrdered: '.',
listItemIndent: 'tab'
}
}

export default remarkPresetLintRecommended

0 comments on commit 82d3e40

Please sign in to comment.