mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #593] Docs: document how to extend from a built-in style #467
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#467
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JoshuaKGoldberg on GitHub (Oct 2, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/593
Following #592: https://github.com/DavidAnson/markdownlint#optionsconfig mentions that you can extend from premade styles and includes an example of how to do so with a CommonJS
require(). But, the docs don't show:For example, I tried this in a JSON config file:
...but that didn't do anything.
Could this be documented, please? I'm happy to send in docs myself... if someone tells me how to do these things 😄
@DavidAnson commented on GitHub (Oct 2, 2022):
In general, an explicit path or a module identifier can be specified. In this case, the somewhat recent addition of
package.json/exportsmay block the syntax you show. Module resolution will also depend on the context in which it is invoked. The most reliable mechanism, may be to copy one of the example styles into your project and reference it from there.