Lint characters that require UTF encoding in the source so that can be replaces with simpler text

This commit is contained in:
Rob Walch
2026-06-09 14:05:54 -07:00
committed by Rob Walch
parent b84f38cd69
commit 3693b24660
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -92,6 +92,11 @@ module.exports = {
'MemberExpression[property.name="includes"][object.type="Identifier"]',
message: arrayIncludesCompatibilityMsg,
},
{
selector:
'Literal[value=/\u2014/], TemplateElement[value.cooked=/\u2014/] ',
message: 'Em-dash (—) is not allowed. Use a hyphen (-) instead.',
},
],
'import/order': [
'warn',
+2 -2
View File
@@ -927,7 +927,7 @@ transfer tracks: ${stringify(transferredTracks, (key, value) => (key === 'initSe
if (evictEnd > 0) {
this._quotaEvictionPending[type] = true;
this.log(
`QuotaExceededError on "${type}" append sn: ${sn} evicting back buffer to ${evictEnd.toFixed(3)}s and retrying`,
`QuotaExceededError on "${type}" append sn: ${sn} - evicting back buffer to ${evictEnd.toFixed(3)}s and retrying`,
);
const removeOp = this.getFlushOp(type, 0, evictEnd);
const clearOp = this.getClearEvictionPendingOp(type);
@@ -936,7 +936,7 @@ transfer tracks: ${stringify(transferredTracks, (key, value) => (key === 'initSe
return;
}
this.warn(
`QuotaExceededError on "${type}" sn: ${sn} no back buffer available to evict`,
`QuotaExceededError on "${type}" sn: ${sn} - no back buffer available to evict`,
);
}
}