Add @typescript-eslint/prefer-nullish-coalescing eslint rule

This commit is contained in:
Daniel Imms
2026-01-31 08:43:05 -08:00
parent 01450f044a
commit bad7e329df
32 changed files with 117 additions and 151 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ it('wcwidth should match all values from the old implementation', function(): vo
if (num < 127) {
return 1;
}
const t = table || initTable();
const t = table ?? initTable();
if (num < 65536) {
return t[num >> 4] >> ((num & 15) << 1) & 3;
}