remark-lint/packages/remark-preset-lint-consistent/index.js
Titus Wormer bd95e6e736
Fix types linking of presets
Related to GH-270.
2021-08-17 12:52:54 +02:00

45 lines
1.7 KiB
JavaScript

/**
* @fileoverview
* remark preset to configure `remark-lint` with settings that enforce
* consistency.
*/
/**
* @typedef {import('unified').Preset} Preset
*/
import remarkLint from 'remark-lint'
import remarkLintBlockquoteIndentation from 'remark-lint-blockquote-indentation'
import remarkLintCheckboxCharacterStyle from 'remark-lint-checkbox-character-style'
import remarkLintCodeBlockStyle from 'remark-lint-code-block-style'
import remarkLintEmphasisMarker from 'remark-lint-emphasis-marker'
import remarkLintFencedCodeMarker from 'remark-lint-fenced-code-marker'
import remarkLintHeadingStyle from 'remark-lint-heading-style'
import remarkLintLinkTitleStyle from 'remark-lint-link-title-style'
import remarkLintListItemContentIndent from 'remark-lint-list-item-content-indent'
import remarkLintOrderedListMarkerStyle from 'remark-lint-ordered-list-marker-style'
import remarkLintRuleStyle from 'remark-lint-rule-style'
import remarkLintStrongMarker from 'remark-lint-strong-marker'
import remarkLintTableCellPadding from 'remark-lint-table-cell-padding'
/** @type {Preset} */
const remarkPresetLintConsistent = {
plugins: [
remarkLint,
[remarkLintBlockquoteIndentation, 'consistent'],
[remarkLintCheckboxCharacterStyle, 'consistent'],
[remarkLintCodeBlockStyle, 'consistent'],
[remarkLintEmphasisMarker, 'consistent'],
[remarkLintFencedCodeMarker, 'consistent'],
[remarkLintHeadingStyle, 'consistent'],
[remarkLintLinkTitleStyle, 'consistent'],
remarkLintListItemContentIndent,
[remarkLintOrderedListMarkerStyle, 'consistent'],
[remarkLintRuleStyle, 'consistent'],
[remarkLintStrongMarker, 'consistent'],
[remarkLintTableCellPadding, 'consistent']
]
}
export default remarkPresetLintConsistent