Skip to content

Conversation

@ChALkeR
Copy link
Member

@ChALkeRChALkeR commented Sep 20, 2016

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

tools

Description of change

Update remark configuration:

  1. 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.
  2. 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.
  3. Reorder the rules alphabetically.

Previous work in #7729.

This change is extracted from #8551, as the tooling might take more time to land and would probably be not backported, and this config update is required to file further doc cleanups in order to avoid conflicts in this config file. Also, I am planning to backport at least some of the doc cleanups.

/cc @Trott, @addaleax, @nodejs/documentation

@ChALkeRChALkeR added the tools Issues and PRs related to the tools directory. label Sep 20, 2016
Copy link
Member

@addaleaxaddaleax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@TrottTrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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: nodejs#8666 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]>
@ChALkeR
Copy link
MemberAuthor

Landed in 7b7d50a.

@ChALkeRChALkeR merged commit 7b7d50a into nodejs:masterSep 21, 2016
jasnell pushed a commit that referenced this pull request Sep 29, 2016
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: #8666 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]>
@ChALkeRChALkeR mentioned this pull request Oct 4, 2016
3 tasks
Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
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: #8666 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@ChALkeR@Trott@addaleax@MylesBorins