chore(frontend): enable additional oxlint rules for better code hygiene (#38145)

This commit is contained in:
Evan Rusackas
2026-02-22 22:36:24 -05:00
committed by GitHub
parent a87a006aae
commit 672a380587
27 changed files with 296 additions and 293 deletions

View File

@@ -489,6 +489,7 @@ export default typedMemo(function DataTable<D extends object>({
function hashString(s: string): string {
let h = 0;
for (let i = 0; i < s.length; i += 1) {
// oxlint-disable-next-line unicorn/prefer-math-trunc -- | 0 is intentional for 32-bit integer wrapping in hash
h = (h * 31 + s.charCodeAt(i)) | 0;
}
return String(h);