kazupon/textlint-rule-no-pair

support disallow options for built-in pairs

Open

#4 aperta il 28 mag 2024

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (0 fork)github user discovery
featuregood first issuestatus: pull request welcome🍰 p2-nice-to-have

Metriche repository

Star
 (0 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor