Enforce curly braces in multi-line if statements (#619)

Removes formatters' ability to print code that goes to a new line, but
uses no braces to delineate.

It becomes more difficult to follow when using JS-style indents (two
spaces).

No effort required - braces added by auto-fixer.
This commit is contained in:
filtered
2025-02-27 02:08:23 +11:00
committed by GitHub
parent a43109d58a
commit 0e9b8b03b7
8 changed files with 57 additions and 34 deletions

View File

@@ -8,10 +8,12 @@ export class MapProxyHandler<V> implements ProxyHandler<Map<number | string, V>>
p: string | symbol,
): PropertyDescriptor | undefined {
const value = this.get(target, p)
if (value) return {
configurable: true,
enumerable: true,
value,
if (value) {
return {
configurable: true,
enumerable: true,
value,
}
}
}