Skip to content

Commit ef37d31

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

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-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: 16 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',
@@ -28,6 +27,22 @@ export default [
2827
'import/no-default-export': 'off',
2928
},
3029
},
30+
// {
31+
// files: ['test/**/*.{js,jsx,mjs,cjs,ts,tsx}'],
32+
// rules: {
33+
// '@typescript-eslint/consistent-type-imports': 'off',
34+
// 'no-promise-executor-return': 'off',
35+
// '@typescript-eslint/no-explicit-any': 'off',
36+
// 'no-param-reassign': 'off',
37+
// 'no-void': 'off',
38+
// 'no-console': 'off',
39+
// 'no-unused-vars': 'off',
40+
// 'import/no-extraneous-dependencies': 'off',
41+
// 'import/extensions': 'off',
42+
// 'import/no-default-export': 'off',
43+
// 'quote-props': ['error', 'consistent'],
44+
// },
45+
// },
3146
{
3247
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
3348
plugins: {

0 commit comments

Comments
 (0)