From 7b7d50a29e098cea525892ad51e61cfa2897e8b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BA=D0=BE=D0=B2=D0=BE=D1=80=D0=BE=D0=B4=D0=B0=20?= =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=90=D0=BD=D0=B4=D1=80?= =?UTF-8?q?=D0=B5=D0=B5=D0=B2=D0=B8=D1=87?= Date: Thu, 15 Sep 2016 22:05:51 +0300 Subject: [PATCH] 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 Reviewed-By: Rich Trott --- .remarkrc | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/.remarkrc b/.remarkrc index d00f2c2488286d..3bcb50d7c67a3a 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 } }