mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #33] Shareable configs #26
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#26
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 @pascalberger on GitHub (Nov 16, 2016).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/33
It would be nice if markdownlint could support shareable configs like eg. ESLint does.
@DavidAnson commented on GitHub (Nov 17, 2016):
Interesting! What is it about shareable configuration that interests you most? The ability to upload to npm, the ability to extend other configuration, or something else?
For the first two benefits, they can be done today using styles as described in the README: https://github.com/DavidAnson/markdownlint#optionsconfig It's not quite as elegant as what ESLint has, but it captures many of the important aspects. (Note that styles could come from an npm package as loose files in the archive.)
Is this sufficient for your purposes, or do you have something else in mind?
@pascalberger commented on GitHub (Nov 17, 2016):
My use case:
Therefore I'm looking for a way to share Markdown linting settings across repositories and implement them so that they are used by the Markdownlint Extension in Visual Studio Code, but also in the gulp script.
My current approach to share settings between Visual Studio Code and gulp is to have a
.markdownlint.jsonfile in the root of the project:In the gulp script I include the
.markdownlint.jsonfrom the root as style:While styles can be a solution for sharing settings between repositories, I unfortunately cannot use them since I use the feature already to share the settings beteween Visual Studio Code and the gulp script.
IMHO best solution for my use case would be to allow to reference a base settings file from a
.markdownlint.jsonfile. In this case I can publish common setting through as npm package, use them in all projects, add a.markdownlint.jsonfile to the root of each repo, which extends the common settings and adds repos specific settings, and use the.markdownlint.jsonfrom the root as style in the gulp script.@DavidAnson commented on GitHub (Nov 18, 2016):
Makes sense, thanks! The idea of chaining config seems useful.
@tomByrer commented on GitHub (Nov 18, 2016):
@pascalberger Why not a
.markdownlint.JSONfile (or ini like[.editorconfig](http://editorconfig.org/)?Though IMHO I prefer something inside
package.json; I have too many files in the root folder.@pascalberger commented on GitHub (Nov 18, 2016):
@tomByrer Sorry, that was a typo. Should have been
markdownlint.jsonof course