-
Notifications
You must be signed in to change notification settings - Fork 8
Cannot deactivate rule with global user ~/.remarkrc #156
Comments
Experiencing the same issue, has anyone found a workaround? |
The same. Is there any movement to support external configuration or explain how-to better? |
You could use a remark config file like that, but you currently cannot use globally installed plugins (those installed with You could install these plugins in |
@wooorm, thank you! It works. |
Does the workaround proposed by @wooorm solve the problem of deactivating a rule in a config file? If yes, I did not understood how. |
The problem with this workaround is that it becomes hard to maintain these packages up to date. It creates a third category of packages that are neither local, neither global. So it is a good thing to have a workaround, but there should be a real fix to allow rule desactivation without having to hack. |
I have suffered with the same issue today. This seems to be due to the remark-lint issue: remarkjs/remark-lint#165. I have no idea how to solve the problem completely, but found another workaround. For example, following {
"plugins": [
["remark-lint-file-extension", "md"],
["remark-lint-no-file-name-mixed-case"],
["remark-lint-no-file-name-articles"],
["remark-lint-no-file-name-irregular-characters"],
["remark-lint-no-file-name-consecutive-dashes"],
["remark-lint-no-file-name-outer-dashes"],
["remark-lint-no-consecutive-blank-lines"],
["remark-lint-maximum-line-length", 80],
["remark-lint-no-shell-dollars"],
["remark-lint-hard-break-spaces"],
["remark-lint-heading-style", "atx"],
["remark-lint-heading-increment"],
["remark-lint-no-duplicate-headings"],
["remark-lint-no-multiple-toplevel-headings"],
["remark-lint-maximum-heading-length"],
["remark-lint-no-heading-punctuation", ":."],
["remark-lint-blockquote-indentation", 2],
["remark-lint-no-blockquote-without-marker"],
["remark-lint-unordered-list-marker-style", "-"],
["remark-lint-ordered-list-marker-style", "."],
["remark-lint-ordered-list-marker-value", "one"],
["remark-lint-list-item-indent", "mixed"],
["remark-lint-list-item-content-indent"],
["remark-lint-list-item-spacing"],
["remark-lint-code-block-style", "fenced"],
["remark-lint-fenced-code-flag", {"allowEmpty": false}],
["remark-lint-fenced-code-marker", "`"],
["remark-lint-rule-style", "---"],
["remark-lint-no-table-indentation"],
["remark-lint-table-pipes"],
["remark-lint-table-pipe-alignment"],
["remark-lint-table-cell-padding", "padded"],
["remark-lint-no-inline-padding"],
["remark-lint-no-shortcut-reference-image"],
["remark-lint-no-shortcut-reference-link"],
["remark-lint-final-definition"],
["remark-lint-definition-case"],
["remark-lint-definition-spacing"],
["remark-lint-link-title-style", "\""],
["remark-lint-strong-marker", "*"],
["remark-lint-emphasis-marker", "*"],
["remark-lint-no-emphasis-as-heading"],
["remark-lint-no-literal-urls"],
["remark-lint-no-auto-link-without-protocol"]
]
} Then install all
I prefer this workaround that not requires '~/node_modules' directory. |
Excellent workaround @kokumura, thanks for sharing it! |
I'm trying to use a global
~/.remarkrc
file. It is correctly picked up, except that deactivating rules doesn't work.That's the
.remarkrc
:The text was updated successfully, but these errors were encountered: