Skip to content

Commit 84dbe32

Browse files
committed
no-promise-executor-return
1 parent 206ce7a commit 84dbe32

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apify-docs-theme/src/roa-loader/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ async function getHash(source) {
4343
}
4444

4545
cache[cacheKey] = res.data.encoded;
46-
await new Promise((resolve) => setTimeout(resolve, 100));
46+
await new Promise((resolve) => {
47+
setTimeout(resolve, 100);
48+
});
4749

4850
return res.data.encoded;
4951
}

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default [
1818
{
1919
rules: {
2020
'@typescript-eslint/no-explicit-any': 'off',
21-
'no-promise-executor-return': 'off',
2221
'no-param-reassign': 'off',
2322
'no-void': 'off',
2423
'no-console': 'off',

0 commit comments

Comments
 (0)