Skip to content

Possible to use different configs for different folders? #96

@borekb

Description

@borekb

I have a project that looks like this:

  • .markdownlintrc (root config, should apply to folders 1..3 below)
  • folder-1
  • folder-2
  • folder-3
  • folder-4
    • .markdownlintrc (special config for folder 4)

The nested folder-4/.markdownlintrc looks like this:

{
  "extends": "../.markdownlintrc",
  "MD041": false
}

Is there a way to run markdownlint CLI once and have it check all folders in my project – folder 1..3 with the root config and folder 4 with its own?

As a fallback, I plan to run markdownlint twice but wanted to ask first if there's a way to achieve that in one go.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions