Skip to content

Commit

Permalink
chore: Disallow use of global structuredClone
Browse files Browse the repository at this point in the history
As long as we use a polyfill in one place, we should make sure we don’t accidentally use the global one elsewhere.
  • Loading branch information
Kim Røen committed Oct 10, 2024
1 parent 7126836 commit 58f0c6c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/dnb-eufemia/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@
}
]
}
],
"no-restricted-globals": [
"error",
{
"name": "structuredClone",
"message": "Import `structuredClone` from '@ungap/structured-clone' instead."
}
]
}
},
Expand Down

0 comments on commit 58f0c6c

Please sign in to comment.