complete/require-ascii
💼 This rule is enabled in the ✅ recommended config.
📝 Require code and comments to only contain ASCII characters.
⚙️ This rule is configurable.
Require code and comments to only contain ASCII characters. If this is too
restrictive, you can use the whitelist option to allow specific characters.
Rule Details
Section titled “Rule Details”// Badconst name = "Αlice"; // Greek letter A (0x391), which is indistinguishable from a normal A.
// Goodconst name = "Alice"; // Normal AOptions
Section titled “Options”{ "rules": { "complete/require-ascii": [ "error", { "whitelist": [] } ] }}