From ec478138a564a0028fcccc11b0afbf27eda59947 Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Wed, 7 May 2025 11:41:56 +0100 Subject: [PATCH] Chore: Fix `import/order`ing for image imports (#105055) --- eslint.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index 9a112633e0c..d33fae54961 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -101,9 +101,16 @@ module.exports = [ 'import/order': [ 'error', { + pathGroups: [ + { + pattern: 'img/**', + group: 'internal', + }, + ], groups: [['builtin', 'external'], 'internal', 'parent', 'sibling', 'index'], 'newlines-between': 'always', alphabetize: { order: 'asc' }, + pathGroupsExcludedImportTypes: ['builtin'], }, ], 'no-restricted-imports': [