Skip to content

Explain how to run lints locally on command line #797

Closed
@Bromeon

Description

@Bromeon

The Style Guidelines mention:

  • Run MarkdownLint against your changes with our config.
    • Most editors have a MarkdownLint plugin available (e.g. VS Code, Sublime Text, Vim).

For those who don't have an IDE/editor with the plugin, would it be possible to list the commands necessary to install and run MarkdownLint againt the project's config? For example, something like

npm install markdownlint # or:
npm install markdownlint --save-dev
# then, explain how to run

This is less of an issue if the CI runs automatically on PRs -- which it seems to do for people who have contributed in the past.

Maybe this could also be wrapped in a .sh or .bash script (many Windows users have something like cmder or WSL2). As a bonus, in the future there could even be some custom automated checks for rules like "don't use bold/italics", "don't nest bullet points" or "use 3rd person instead of we/our/I/my".

Just writing down some thoughts, even the automated CI is already great 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions