comment-japanese-spacing
Require a half-width space between Japanese and half-width characters.
- Rule ID:
tai-kun/comment-japanese-spacing - Auto-fix: Yes
Fixes missing spaces between Japanese characters and half-width letters, digits, and technical symbols. Full-width or repeated spaces at those boundaries are normalized to one half-width space.
Configuration
Add the rule to lint.rules in vite.config.ts to enable it.
"tai-kun/comment-japanese-spacing": "error",
Examples
Invalid
// Vite+のlintを実行します
Valid
// Vite+ の lint を実行します。
Notes
- Characters around
、,。,(,),「, and」are excluded. - Inline code, URLs, code fences, and
@exampleblocks are protected. - Full-width spaces and repeated spaces are normalized to one space.