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β
// Bad
const name = "Ξlice"; // Greek letter A (0x391), which is indistinguishable from a normal A.
// Good
const name = "Alice"; // Normal A
Optionsβ
{
"rules": {
"complete/require-ascii": [
"error",
{
"whitelist": []
}
]
}
}