mirror of
https://github.com/remarkjs/remark-lint.git
synced 2024-10-27 03:37:50 +03:00
bd95e6e736
Related to GH-270.
45 lines
1.7 KiB
JavaScript
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
|