I'm using the linter-markdown
package in Atom for writing tidy Markdown.
Generally I prefer having the package option Strict markdown style by default
active. It adds the rule preset remark-preset-lint-markdown-style-guide
based on Ciro Santilli's Markdown Style Guide to the checks.
But sometimes, for example when working with Slate, external factors force me to break one or two of the strict Markdown Style Guide rules.
For those cases I would like to be able to manually deactivate those rules, but only for the particular project.
linter-markdown
uses remark-lint
which supports a .remarkrc
configuration file.
If I put a .remarkrc
file with the following content in the same directory as the Markdown file in question, it definitely does get picked up. But the linter then fails with a fatal error, also shown below.
.remarkrc
:
{
"plugins": [
"remark-preset-lint-markdown-style-guide",
["no-multiple-toplevel-headings", false]
]
}
Error:
Error: Could not find module `remark-preset-lint-markdown-style-guide`...
Does anyone know of a good way to customize the linter rules for the linter-markdown
Atom package on a per project basis?