From 39337da6c14b54fdc16785811eb2771e1b51ba20 Mon Sep 17 00:00:00 2001 From: Rayane <77965000+rayane-d@users.noreply.github.com> Date: Fri, 14 Nov 2025 19:12:26 +0100 Subject: [PATCH 1/3] Allow direct icon imports (from Expensicons and Illustrations) in lib files --- eslint.changed.config.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eslint.changed.config.mjs b/eslint.changed.config.mjs index c8c502e9d4ea..41d31d332021 100644 --- a/eslint.changed.config.mjs +++ b/eslint.changed.config.mjs @@ -58,6 +58,14 @@ const config = defineConfig([ }, }, + // Allow direct icon imports (from Expensicons and Illustrations) in lib files + { + files: ['**/libs/**/*.{ts,tsx}'], + rules: { + 'no-restricted-imports': 'off', + }, + }, + { files: ['**/libs/**/*.{ts,tsx}'], rules: { From 421700e75aaed13ce040fd5f490327cba5140ef9 Mon Sep 17 00:00:00 2001 From: Rayane <77965000+rayane-d@users.noreply.github.com> Date: Fri, 14 Nov 2025 19:27:34 +0100 Subject: [PATCH 2/3] Allow direct icon imports (from Expensicons and Illustrations) in lib files --- eslint.changed.config.mjs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/eslint.changed.config.mjs b/eslint.changed.config.mjs index 41d31d332021..f8fafed4e6d5 100644 --- a/eslint.changed.config.mjs +++ b/eslint.changed.config.mjs @@ -48,6 +48,13 @@ const config = defineConfig([ message: 'Namespace imports from @userActions are not allowed. Use named imports instead. Example: import { action } from "@userActions/module"', }, ], + }, + }, + + { + files: ['**/*.ts', '**/*.tsx'], + ignores: ['**/libs/**/*.{ts,tsx}'], + rules: { 'no-restricted-imports': [ 'error', { @@ -58,13 +65,6 @@ const config = defineConfig([ }, }, - // Allow direct icon imports (from Expensicons and Illustrations) in lib files - { - files: ['**/libs/**/*.{ts,tsx}'], - rules: { - 'no-restricted-imports': 'off', - }, - }, { files: ['**/libs/**/*.{ts,tsx}'], From 0110111fcf802de938063b4deb599043290348dc Mon Sep 17 00:00:00 2001 From: Rayane <77965000+rayane-d@users.noreply.github.com> Date: Fri, 14 Nov 2025 19:32:02 +0100 Subject: [PATCH 3/3] prettier --- eslint.changed.config.mjs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eslint.changed.config.mjs b/eslint.changed.config.mjs index f8fafed4e6d5..8b41bf1ba6b2 100644 --- a/eslint.changed.config.mjs +++ b/eslint.changed.config.mjs @@ -52,8 +52,8 @@ const config = defineConfig([ }, { - files: ['**/*.ts', '**/*.tsx'], - ignores: ['**/libs/**/*.{ts,tsx}'], + files: ['**/*.ts', '**/*.tsx'], + ignores: ['**/libs/**/*.{ts,tsx}'], rules: { 'no-restricted-imports': [ 'error', @@ -65,7 +65,6 @@ const config = defineConfig([ }, }, - { files: ['**/libs/**/*.{ts,tsx}'], rules: {