|
| 1 | +import remarkLintBlockquoteIndentation from 'remark-lint-blockquote-indentation'; |
| 2 | +import remarkLintCheckboxCharacterStyle from 'remark-lint-checkbox-character-style'; |
| 3 | +import remarkLintCheckboxContentIndent from 'remark-lint-checkbox-content-indent'; |
| 4 | +import remarkLintCodeBlockStyle from 'remark-lint-code-block-style'; |
| 5 | +import remarkLintDefinitionSpacing from 'remark-lint-definition-spacing'; |
| 6 | +import remarkLintFencedCodeMarker from 'remark-lint-fenced-code-marker'; |
| 7 | +import remarkLintFileExtension from 'remark-lint-file-extension'; |
| 8 | +import remarkLintFinalDefinition from 'remark-lint-final-definition'; |
| 9 | +import remarkLintHeadingStyle from 'remark-lint-heading-style'; |
| 10 | +import remarkLintNoConsecutiveBlankLines from 'remark-lint-no-consecutive-blank-lines'; |
| 11 | +import remarkLintNoFileNameConsecutiveDashes from 'remark-lint-no-file-name-consecutive-dashes'; |
| 12 | +import remarkLintNofileNameOuterDashes from 'remark-lint-no-file-name-outer-dashes'; |
| 13 | +import remarkLintNoHeadingIndent from 'remark-lint-no-heading-indent'; |
| 14 | +import remarkLintNoLiteralURLs from 'remark-lint-no-literal-urls'; |
| 15 | +import remarkLintNoMultipleToplevelHeadings from 'remark-lint-no-multiple-toplevel-headings'; |
| 16 | +import remarkLintNoShellDollars from 'remark-lint-no-shell-dollars'; |
| 17 | +import remarkLintNoTableIndentation from 'remark-lint-no-table-indentation'; |
| 18 | +import remarkLintNoTabs from 'remark-lint-no-tabs'; |
| 19 | +import remarkLintNoTrailingSpaces from 'remark-lint-no-trailing-spaces'; |
| 20 | +import remarkLintNoUnusedDefinitions from 'remark-lint-no-unused-definitions'; |
| 21 | +import remarkLintRuleStyle from 'remark-lint-rule-style'; |
| 22 | +import remarkLintStrongMarker from 'remark-lint-strong-marker'; |
| 23 | +import remarkLintTableCellPadding from 'remark-lint-table-cell-padding'; |
| 24 | +import remarkLintTablePipes from 'remark-lint-table-pipes'; |
| 25 | +import remarkPresetLintRecommended from 'remark-preset-lint-recommended'; |
| 26 | + |
| 27 | +export default { |
| 28 | + settings: { |
| 29 | + tightDefinitions: true, |
| 30 | + emphasis: '_', |
| 31 | + bullet: '-', |
| 32 | + rule: '-', |
| 33 | + }, |
| 34 | + plugins: [ |
| 35 | + // Base plugins |
| 36 | + remarkPresetLintRecommended, |
| 37 | + |
| 38 | + // Blockquote and list rules |
| 39 | + [remarkLintBlockquoteIndentation, 2], |
| 40 | + [remarkLintCheckboxCharacterStyle, { checked: 'x', unchecked: ' ' }], |
| 41 | + remarkLintCheckboxContentIndent, |
| 42 | + |
| 43 | + // Code and formatting rules |
| 44 | + [remarkLintCodeBlockStyle, 'fenced'], |
| 45 | + [remarkLintFencedCodeMarker, '`'], |
| 46 | + [remarkLintRuleStyle, '---'], |
| 47 | + [remarkLintStrongMarker, '*'], |
| 48 | + |
| 49 | + // File and filename rules |
| 50 | + [remarkLintFileExtension, 'md'], |
| 51 | + remarkLintNoFileNameConsecutiveDashes, |
| 52 | + remarkLintNofileNameOuterDashes, |
| 53 | + |
| 54 | + // Heading and link rules |
| 55 | + remarkLintFinalDefinition, |
| 56 | + [remarkLintNoUnusedDefinitions, false], |
| 57 | + [remarkLintNoLiteralURLs, false], |
| 58 | + [remarkLintHeadingStyle, 'atx'], |
| 59 | + remarkLintNoHeadingIndent, |
| 60 | + remarkLintNoMultipleToplevelHeadings, |
| 61 | + |
| 62 | + // Layout and spacing rules |
| 63 | + remarkLintDefinitionSpacing, |
| 64 | + remarkLintNoConsecutiveBlankLines, |
| 65 | + remarkLintNoTableIndentation, |
| 66 | + remarkLintNoTabs, |
| 67 | + remarkLintNoTrailingSpaces, |
| 68 | + [remarkLintTableCellPadding, 'padded'], |
| 69 | + remarkLintTablePipes, |
| 70 | + |
| 71 | + // Shell and console rules |
| 72 | + remarkLintNoShellDollars, |
| 73 | + ], |
| 74 | +}; |
0 commit comments