0.2.1 • Published 4 years ago

@laysent/remark-preset-lint v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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

remark-lintremark-lint-blockquote-indentationremark-lint-checkbox-character-styleremark-lint-checkbox-content-indentremark-lint-code-block-styleremark-lint-definition-caseremark-lint-definition-spacingremark-lint-emphasis-markerremark-lint-fenced-code-flagremark-lint-fenced-code-markerremark-lint-file-extensionremark-lint-final-definitionremark-lint-final-newlineremark-lint-first-heading-levelremark-lint-heading-incrementremark-lint-heading-styleremark-lint-linebreak-styleremark-lint-link-title-styleremark-lint-list-item-bullet-indentremark-lint-list-item-content-indentremark-lint-list-item-indentremark-lint-list-item-spacingremark-lint-match-punctuationremark-lint-maximum-heading-lengthremark-lint-no-auto-link-without-protocolremark-lint-no-blockquote-without-markerremark-lint-no-chinese-punctuation-in-numberremark-lint-no-consecutive-blank-linesremark-lint-no-duplicate-definitionsremark-lint-no-duplicate-headings-in-sectionremark-lint-no-empty-urlremark-lint-no-file-name-articlesremark-lint-no-file-name-consecutive-dashesremark-lint-no-file-name-irregular-charactersremark-lint-no-file-name-mixed-caseremark-lint-no-file-name-outer-dashesremark-lint-no-heading-content-indentremark-lint-no-heading-indentremark-lint-no-heading-like-paragraphremark-lint-no-heading-punctuationremark-lint-no-inline-paddingremark-lint-no-literal-urlsremark-lint-no-long-coderemark-lint-no-missing-blank-linesremark-lint-no-multiple-toplevel-headingsremark-lint-no-paragraph-content-indentremark-lint-no-reference-like-urlremark-lint-no-repeat-punctuationremark-lint-no-shell-dollarsremark-lint-no-shortcut-reference-imageremark-lint-no-shortcut-reference-linkremark-lint-no-table-indentationremark-lint-no-tabsremark-lint-no-undefined-referencesremark-lint-no-unused-definitionsremark-lint-ordered-list-marker-styleremark-lint-ordered-list-marker-valueremark-lint-rule-styleremark-lint-spaces-around-numberremark-lint-spaces-around-wordremark-lint-strong-markerremark-lint-table-cell-paddingremark-lint-table-pipe-alignmentremark-lint-table-pipesremark-lint-unordered-list-marker-style
0.2.1

4 years ago

0.2.0

5 years ago

0.1.8

5 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago