[GH-ISSUE #78] Allow declaring rules in a config within a "rules" object #63

Closed
opened 2026-03-03 01:23:24 +03:00 by kerem · 2 comments
Owner

Originally created by @JoshuaKGoldberg on GitHub (Oct 22, 2017).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/78

A lot of other linters ask that rule settings be declared in a rules object so that configurations are separate:

{
    "extends": ["tslint:all"],
    "rules": {
        "terrible-rule": false
    }
}

Can this project allow the same? The logic would be that if the object is present, it's merged with the base one.

Originally created by @JoshuaKGoldberg on GitHub (Oct 22, 2017). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/78 A lot of other linters ask that rule settings be declared in a rules object so that configurations are separate: ```json { "extends": ["tslint:all"], "rules": { "terrible-rule": false } } ``` Can this project allow the same? The logic would be that if the object is present, it's merged with the base one.
kerem 2026-03-03 01:23:24 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Oct 22, 2017):

Please see the documentation for extends here:
https://github.com/DavidAnson/markdownlint/blob/master/README.md#optionsconfig

<!-- gh-comment-id:338508002 --> @DavidAnson commented on GitHub (Oct 22, 2017): Please see the documentation for `extends` here: https://github.com/DavidAnson/markdownlint/blob/master/README.md#optionsconfig
Author
Owner

@DavidAnson commented on GitHub (Oct 28, 2017):

Please reopen if extends doesn't cover your scenario.

<!-- gh-comment-id:340223241 --> @DavidAnson commented on GitHub (Oct 28, 2017): Please reopen if `extends` doesn't cover your scenario.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#63
No description provided.