From a04066720ee5bdf357a79bec34d995d0d3287eee Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Tue, 21 May 2024 13:16:40 +0200 Subject: [PATCH] Fixup rules from eslint-plugin-upleveled --- index.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2d1e1158..9d0912e0 100644 --- a/index.js +++ b/index.js @@ -545,7 +545,23 @@ const configArray = [ rules: sonarjs.rules, }, unicorn, - upleveled, + upleveled: + // TODO: Fix UpLeveled plugin for ESLint 9 + // - https://github.com/upleveled/eslint-plugin-upleveled/issues/117 + // + // Type assertions required because of incompatibility of + // @eslint/compat types + // - https://github.com/typescript-eslint/typescript-eslint/issues/9115 + // - https://github.com/eslint/rewrite/issues/25 + /** @type + * {import('@typescript-eslint/utils/ts-eslint').FlatConfig.Plugin} + * */ ( + fixupPluginRules( + /** @type + * {import('@eslint/compat').FixupPluginDefinition} + * */ (upleveled), + ) + ), }, settings: { 'import-x/parsers': {