From 86833178336734027beae43ee83d548517c41d68 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 28 Oct 2023 00:09:10 +0200 Subject: [PATCH] infra(unicorn): prefer-top-level-await --- .eslintrc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 5f72451ba2f..9a4581c7cf9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -41,6 +41,8 @@ module.exports = defineConfig({ 'unicorn/prefer-at': 'off', // TODO @Shinigami92 2023-09-23: prefer-string-replace-all should be turned on when we drop support for Node 14. 'unicorn/prefer-string-replace-all': 'off', + // TODO @ST-DDT 2023-10-28: The following rule should be turned on when we switch to esm. + 'unicorn/prefer-top-level-await': 'off', // TODO @Shinigami92 2023-09-23: The following rules currently conflict with our code. // Each rule should be checked whether it should be enabled/configured and the problems fixed, or stay disabled permanently. @@ -60,7 +62,6 @@ module.exports = defineConfig({ 'unicorn/prefer-module': 'off', 'unicorn/prefer-negative-index': 'off', 'unicorn/prefer-string-slice': 'off', - 'unicorn/prefer-top-level-await': 'off', 'unicorn/prevent-abbreviations': 'off', 'unicorn/require-array-join-separator': 'off', 'unicorn/switch-case-braces': 'off',