@falcon0387/textlint-rule-no-mixed-japanese-punctuation
v0.1.1
Published
textlint rule to disallow mixing configured character variants
Maintainers
Readme
@falcon0387/textlint-rule-no-mixed-japanese-punctuation
A textlint rule to disallow mixing declaratively configured character variants.
Install
bun add -D @falcon0387/textlint-rule-no-mixed-japanese-punctuationUsage
rules:
"@falcon0387/no-mixed-japanese-punctuation": trueBy default, the rule checks the following groups:
、/,。/.
Custom groups
groups sets all check targets (defaults are not merged).
The first variant found per group becomes the standard, and every later mismatch is reported.
Set groups: [] to disable all checks explicitly.
rules:
"@falcon0387/no-mixed-japanese-punctuation":
groups:
- ["、", ","]
- ["。", "."]
- ["?", "?"]
- ["!", "!"]
- ["...", "…"]Ignored nodes
Characters inside the following nodes are ignored:
Link, Image, BlockQuote, Emphasis, Strong, Code, CodeBlock, Html
Release
Automated via release-please.
Merge the auto-generated Release PR to bump version, update CHANGELOG.md, and create a tag.
