From 2c4324aeb897af191472bb5a7d25ff62450434a7 Mon Sep 17 00:00:00 2001 From: Aaron Moat <2937187+AaronMoat@users.noreply.github.com> Date: Sun, 22 Sep 2024 17:05:59 +1000 Subject: [PATCH] Hoist import-x for better extendability --- base.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/base.js b/base.js index c414afb..3f8dd2d 100644 --- a/base.js +++ b/base.js @@ -93,13 +93,18 @@ const settings = { module.exports = [ eslintConfigPrettier, + { + plugins: { + 'import-x': importX, + }, + }, importX.flatConfigs.typescript, { - ...importX.flatConfigs.errors, + rules: importX.flatConfigs.errors.rules, files: [`**/*.{${jsExtensions}}`], }, { - ...importX.flatConfigs.warnings, + rules: importX.flatConfigs.warnings.rules, files: [`**/*.{${jsExtensions}}`], }, { @@ -125,9 +130,6 @@ module.exports = [ ), { files: [`**/*.{${tsExtensions}}`], - plugins: { - 'import-x': importX, - }, languageOptions: { parser: tseslint.parser,