kazupon/textlint-rule-no-pair

support disallow options for built-in pairs

Open

#4 aberto em 28 de mai. de 2024

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (0 forks)github user discovery
featuregood first issuestatus: pull request welcome🍰 p2-nice-to-have

Métricas do repositório

Stars
 (0 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador