fix: eslint (#8185)

Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
This commit is contained in:
Aaron 2025-12-05 17:33:51 +07:00 committed by GitHub
parent 82c970ac4b
commit 85d90030cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
138 changed files with 5054 additions and 4747 deletions

View file

@ -1,4 +1,3 @@
export * from "./empty-states";
export * from "./loaders";
export * from "./recents";
export * from "./empty-states";

View file

@ -173,3 +173,5 @@ const IntegrationGuide = observer(function IntegrationGuide() {
});
export default IntegrationGuide;
export { IntegrationGuide };

View file

@ -1,6 +1,5 @@
export * from "./content";
export * from "./title";
export * from "./root";
export * from "./quick-action-button";
export * from "./display-filters";
export * from "./content";
export * from "./quick-action-button";
export * from "./root";
export * from "./title";

View file

@ -1 +1,24 @@
export * from "./requestIdleCallback";
if (typeof window !== "undefined" && window) {
// Add request callback polyfill to browser in case it does not exist
window.requestIdleCallback =
window.requestIdleCallback ??
function (cb) {
const start = Date.now();
return setTimeout(function () {
cb({
didTimeout: false,
timeRemaining: function () {
return Math.max(0, 50 - (Date.now() - start));
},
});
}, 1);
};
window.cancelIdleCallback =
window.cancelIdleCallback ??
function (id) {
clearTimeout(id);
};
}
export {};

View file

@ -1,24 +0,0 @@
if (typeof window !== "undefined" && window) {
// Add request callback polyfill to browser in case it does not exist
window.requestIdleCallback =
window.requestIdleCallback ??
function (cb) {
const start = Date.now();
return setTimeout(function () {
cb({
didTimeout: false,
timeRemaining: function () {
return Math.max(0, 50 - (Date.now() - start));
},
});
}, 1);
};
window.cancelIdleCallback =
window.cancelIdleCallback ??
function (id) {
clearTimeout(id);
};
}
export {};