no-space-around-fullwidth

no-space-around-fullwidth

✅ This rule is recommended.

🔧 This rule is automatically fixable.

📖 Rule Details

The noSpaceAroundFullwidth configuration option is a Boolean value that determines whether spaces around fullwidth characters should be removed.

Removing spaces around fullwidth characters is most useful for Asian languages that mix fullwidth and halfwidth characters, such as Japanese and Chinese. It can help improve alignment and make text more compact.

<!-- ✅ Correct -->
剛剛買了一部 iPhone,好開心!
 
<!-- ❌ Incorrect -->
剛剛買了一部 iPhone ,好開心!
 
剛剛買了一部 iPhone, 好開心!
 
 <!-- 🔧 Fixed -->
剛剛買了一部 iPhone,好開心!
 
剛剛買了一部 iPhone,好開心!

⚙️ Usage

{
  "noSpaceAroundFullwidth": true
}
  • Type: boolean
  • Default: true
  • Description: Set option to true to remove any spaces before and after fullwidth characters.