mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
chore(lint): replace ESLint with Oxlint and clear anti-slop findings
This commit is contained in:
1 parent
c6c13335e5
commit
b625acfc0c
1083 files changed
+67089
-80136
No files matched your search
@@ -19,8 +19,7 @@ function setViewportWidth(width: number) {
|
||||
|
||||
function stubPageWidth(width: number): () => void {
|
||||
const main = document.createElement('main')
|
||||
main.getBoundingClientRect = () =>
|
||||
({ width, height: 800, top: 0, left: 0, right: width, bottom: 800, x: 0, y: 0, toJSON: () => ({}) }) as DOMRect
|
||||
main.getBoundingClientRect = () => new DOMRect(0, 0, width, 800)
|
||||
document.body.append(main)
|
||||
return () => main.remove()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user