kazupon/textlint-rule-no-pair
View on GitHubsupport disallow options for built-in pairs
Open
#4 opened on May 28, 2024
featuregood first issuestatus: pull request welcome🍰 p2-nice-to-have
Repository metrics
- Stars
- (0 stars)
- PR merge metrics
- (PR metrics pending)
Description
Clear and concise description of the problem
As said in this section of the readme, textlint-rule-no-pairs has some built-in pairs to support the disallowPairs option.
As said in the textlint docs, it also supports other formats such as json and yaml. However, these cannot use the import syntax, so we cannot use the built-in pairs that textlint-rule-no-pair exports.
Suggested solution
The following options can be supported to enable built-in pairs in formats such as json as a disallow:
- disallowParenthesis
- disallowSquareBrackets
- disallowCurlyBrackets
- disallowFullWidthParenthesis
- disallowFullWidthSquareBrackets
- disallowFullWidthCurlyBrackets
- disallowCornerBrackets
- disallowWhiteCornerBrackets
- disallowLessAndGreaterThanAngleBrackets
- disallowLenticularBrackets
- disallowWhiteLenticularBrackets
- disallowWhiteSquareBrackets
These option names are a bit long and may be better abbreviated so that the meaning can be understood.
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.