diff options
author | Сковорода Никита Андреевич <chalkerx@gmail.com> | 2016-09-15 22:05:51 +0300 |
---|---|---|
committer | Сковорода Никита Андреевич <chalkerx@gmail.com> | 2016-09-21 21:01:33 +0300 |
commit | 7b7d50a29e098cea525892ad51e61cfa2897e8b8 (patch) | |
tree | e7073991fec6e510a80687f4173e080caaed75b9 /.remarkrc | |
parent | b35f22b135e8110a4468e7e5ee1e83f9237a9fde (diff) |
tools: update remark configuration
Specify the plugin name as 'remark-lint/', as new remark-cli refused to
find it when cwd is different from the directory where node_modules are
put. Trailing slash fixes this, as the plugin name gets treated as a
path, so `require` works on it.
Explicitly specify the list of rules we want to enable, as the new
remark-lint is opt-in and doesn't come with any rules by default.
Reorder the rules alphabetically.
PR-URL: https://github.com/nodejs/node/pull/8666
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to '.remarkrc')
-rw-r--r-- | .remarkrc | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/.remarkrc b/.remarkrc index d00f2c24882..3bcb50d7c67 100644 --- a/.remarkrc +++ b/.remarkrc @@ -1,34 +1,62 @@ { "plugins": { - "remark-lint": { + "remark-lint/": { + "blockquote-indentation": 2, + "checkbox-character-style": { "checked": "x", "unchecked": " " }, + "checkbox-content-indent": true, "code-block-style": false, "definition-case": false, + "definition-spacing": true, "emphasis-marker": false, + "fenced-code-flag": true, + "fenced-code-marker": "`", + "file-extension": "md", + "final-definition": true, + "final-newline": true, "first-heading-level": false, + "hard-break-spaces": true, "heading-increment": false, - "list-item-content-indent": false, + "heading-style": "atx", + "link-title-style": false, "list-item-bullet-indent": false, + "list-item-content-indent": false, "list-item-indent": false, "list-item-spacing": false, "maximum-heading-length": false, "maximum-line-length": false, + "no-auto-link-without-protocol": true, + "no-blockquote-without-caret": true, "no-consecutive-blank-lines": false, + "no-duplicate-definitions": true, "no-duplicate-headings": false, "no-emphasis-as-heading": false, "no-file-name-articles": false, + "no-file-name-consecutive-dashes": true, "no-file-name-irregular-characters": false, + "no-file-name-mixed-case": false, + "no-file-name-outer-dashes": true, + "no-heading-content-indent": true, + "no-heading-indent": true, "no-heading-punctuation": false, "no-html": false, "no-inline-padding": false, - "no-shell-dollars": false, - "no-shortcut-reference-link": false, "no-literal-urls": false, "no-missing-blank-lines": false, "no-multiple-toplevel-headings": false, + "no-shell-dollars": false, + "no-shortcut-reference-image": true, + "no-shortcut-reference-link": false, + "no-table-indentation": true, + "no-tabs": true, "no-undefined-references": false, + "no-unused-definitions": true, "ordered-list-marker-style": false, "ordered-list-marker-value": false, + "rule-style": false, + "strong-marker": false, + "table-cell-padding": "padded", "table-pipe-alignment": false, + "table-pipes": true, "unordered-list-marker-style": false } } |