remark-preset-lint-videojs

1.0.2 • Public • Published

remark-preset-lint-videojs

A remark preset to configure remark-lint with standard rules for video.js project documentation..

Install

npm:

npm install remark-preset-lint-videojs

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

 ...
 "remarkConfig": {
+  "plugins": ["remark-preset-lint-videojs"]
 }
 ...

Or use it on the CLI directly

remark -u remark-preset-lint-videojs readme.md

Or use this on the API:

 var remark = require('remark');
 var report = require('vfile-reporter');
 
 var file = remark()
+  .use(require('remark-preset-lint-videojs'))
   .processSync('_Emphasis_ and **importance**')
 
 console.error(report(file));

Rules

This preset configures remark-lint with the following rules:

Rule Setting
blockquote-indentation ['error', 2]
checkbox-character-style ['warn']
checkbox-content-indent ['error']
code-block-style ['error', 'fenced']
definition-case ['off']
definition-spacing ['error']
emphasis-marker ['error', '_']
fenced-code-flag ['error']
fenced-code-marker ['error', '`']
file-extension ['error']
final-definition ['error']
final-newline ['off']
first-heading-level ['warn', 1]
hard-break-spaces ['off']
heading-increment ['error']
heading-style ['error', 'atx']
link-title-style ['warn', '"']
list-item-bullet-indent ['error']
list-item-content-indent ['warn']
list-item-indent ['error', 'space']
list-item-spacing ['off']
maximum-heading-length ['off']
maximum-line-length ['off']
no-auto-link-without-protocol ['error']
no-blockquote-without-marker ['error']
no-consecutive-blank-lines ['error']
no-duplicate-definitions ['error']
no-duplicate-headings ['off']
no-duplicate-headings-in-section ['error']
no-emphasis-as-heading ['error']
no-empty-url ['error']
no-file-name-articles ['off']
no-file-name-consecutive-dashes ['off']
no-file-name-irregular-characters ['warn', '\\.a-zA-Z0-9-_']
no-file-name-mixed-case ['error']
no-file-name-outer-dashes ['error']
no-heading-content-indent ['error']
no-heading-indent ['error']
no-heading-like-paragraph ['error']
no-heading-punctuation ['off']
no-html ['off']
no-inline-padding ['error']
no-literal-urls ['off']
no-missing-blank-lines ['off']
no-multiple-toplevel-headings ['error']
no-reference-like-url ['error']
no-shell-dollars ['error']
no-shortcut-reference-image ['off']
no-shortcut-reference-link ['off']
no-table-indentation ['error']
no-tabs ['error']
no-undefined-references ['error']
no-unused-definitions ['error']
ordered-list-marker-style ['error', '.']
ordered-list-marker-value ['error', 'one']
rule-style ['error', '***']
strong-marker ['error', '*']
table-cell-padding ['warn', 'padded']
table-pipe-alignment ['warn']
table-pipes ['warn']
unordered-list-marker-style ['warn', '*']

Readme

Keywords

Package Sidebar

Install

npm i remark-preset-lint-videojs

Weekly Downloads

0

Version

1.0.2

License

Apache-2.0

Last publish

Collaborators

  • brandonocasey