unified

Project: laysent/remark-lint-plugins

Package: @laysent/remark-preset-lint@0.2.1

  1. Dependents: 0
  2. preset of remark lint rules
  1. remark 214
  2. lint 80
  3. remark-lint 11
  4. preset 5

remark-preset-ling

remark preset for linting English & Chinese markdown documents.

Rules

This preset configures remark-lint with the following rules:

RuleSettings
remark-lint-blockquote-indentation
remark-lint-checkbox-character-style
remark-lint-checkbox-content-indentchecked: 'x'; unchecked: ' '
remark-lint-code-block-stylefenced
remark-lint-definition-case
remark-lint-definition-spacing
remark-lint-emphasis-marker_
remark-lint-fenced-code-flagallowEmpty: false
remark-lint-fenced-code-marker```
remark-lint-file-extensionmd
remark-lint-final-definition
remark-lint-final-newline
remark-lint-first-heading-level2
remark-lint-heading-increment
remark-lint-heading-styleatx
remark-lint-linebreak-styleunix
remark-lint-link-title-style'
remark-lint-list-item-bullet-indent
remark-lint-list-item-content-indent
remark-lint-list-item-indentspace
remark-lint-list-item-spacingcheckBlanks: true
remark-lint-match-punctuation60
remark-lint-maximum-heading-length
remark-lint-no-auto-link-without-protocol
remark-lint-no-blockquote-without-marker
remark-lint-no-consecutive-blank-lines
remark-lint-no-duplicate-definitions
remark-lint-no-duplicate-headings-in-section
remark-lint-no-empty-url
remark-lint-no-file-name-articles
remark-lint-no-file-name-consecutive-dashes
remark-lint-no-file-name-irregular-characters\\.a-zA-Z0-9-
remark-lint-no-file-name-mixed-case
remark-lint-no-file-name-outer-dashes
remark-lint-no-heading-content-indent
remark-lint-no-heading-indent
remark-lint-no-heading-like-paragraph
remark-lint-no-heading-punctuation.,;:!?。,;:!?
remark-lint-no-inline-padding
remark-lint-no-literal-urls
remark-lint-no-missing-blank-linesexceptTightLists: true
remark-lint-no-multiple-toplevel-headings1
remark-lint-no-paragraph-content-indent
remark-lint-no-reference-like-url
remark-lint-no-shell-dollars
remark-lint-no-shortcut-reference-image
remark-lint-no-shortcut-reference-link
remark-lint-no-table-indentation
remark-lint-no-tabs
remark-lint-no-undefined-references
remark-lint-no-unused-definitions
remark-lint-ordered-list-marker-style.
remark-lint-ordered-list-marker-valueordered
remark-lint-rule-style---
remark-lint-spaces-around-number
remark-lint-spaces-around-word
remark-lint-strong-marker*
remark-lint-table-cell-paddingpadded
remark-lint-table-pipe-alignment
remark-lint-table-pipes
remark-lint-unordered-list-marker-style+

Usage

You probably want to use it on the CLI through a config file:

 ...
 "remarkConfig": {
   "plugins": [
     ...
+    "@laysent/remark-preset-lint",
     ...
   ]
 }
 ...

Or use it on the CLI directly

remark -u @laysent/remark-preset-lint readme.md

Or use this on the API:

 var remark = require('remark');
 var report = require('vfile-reporter');

 remark()
+  .use(require('@laysent/remark-preset-lint'))
   .process('_Emphasis_ and **importance**', function (err, file) {
     console.error(report(err || file));
   });

License

MIT © LaySent