mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #1327] Support rule option names in camelCase #2507
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#2507
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 @regseb on GitHub (Aug 13, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1327
Description
Option names are in snake_case (e.g.
siblings_onlyfor theno-duplicate-headingrule). camelCase names should also be supported (e.g.siblingsOnly).Motivations
skipStringsforno-irregular-whitespace`ignorePropertiesforproperty-no-unknownallowAttrsforinvalid-attrrequireCapitalFirstLetterfordescription-formatcamelcaserule. ESLint returns errors because the properties are in snake_case.@DavidAnson commented on GitHub (Aug 13, 2024):
This is a holdover from the original Ruby implementation. It's reasonable to do as you suggest, but I'd rather not code it into every rule or document/test/sample both forms. I'll think about how/when this might be least disruptive.