mirror of
https://github.com/apache/superset.git
synced 2026-05-09 09:55:19 +00:00
chore(frontend): enable additional oxlint rules for better code hygiene (#38145)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user