From 4cf484d7897d8fb401763e159d0d5cdcefd000b5 Mon Sep 17 00:00:00 2001 From: KJ Monahan Date: Fri, 22 Mar 2024 09:42:35 -0500 Subject: [PATCH] Disable prettier-plugin-organize-imports for generated Icon files --- .prettierrc | 4 ++-- lib/icon-template.js | 3 +++ source/01-global/icon/icons/AngleDoubleLeft.tsx | 1 + source/01-global/icon/icons/AngleDoubleRight.tsx | 1 + source/01-global/icon/icons/AngleDown.tsx | 1 + source/01-global/icon/icons/AngleLeft.tsx | 1 + source/01-global/icon/icons/AngleRight.tsx | 1 + source/01-global/icon/icons/AngleUp.tsx | 1 + source/01-global/icon/icons/Close.tsx | 1 + source/01-global/icon/icons/Facebook.tsx | 1 + source/01-global/icon/icons/Linkedin.tsx | 1 + source/01-global/icon/icons/Rss.tsx | 1 + source/01-global/icon/icons/Twitter.tsx | 1 + 13 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.prettierrc b/.prettierrc index 416fe902..7ab15329 100644 --- a/.prettierrc +++ b/.prettierrc @@ -13,9 +13,9 @@ "useTabs": false, "overrides": [ { - "files": ["source/01-global/icon/**/*.tsx"], + "files": ["source/01-global/icon/**/*.tsx", "source/01-global/icon/**/*.svg"], "options": { - "organizeImportsSkipDestructiveCodeActions": true + "plugins": [] } } ] diff --git a/lib/icon-template.js b/lib/icon-template.js index dbf51b52..3063a1e7 100644 --- a/lib/icon-template.js +++ b/lib/icon-template.js @@ -53,9 +53,12 @@ const iconTemplate = ( } return tpl` +// organize-imports-ignore + // This component is automatically generated. // SVGs should be added to icon/svgs. // See the project documentation for more information. + // tslint:disable:ordered-imports import clsx from 'clsx'; ${imports}; diff --git a/source/01-global/icon/icons/AngleDoubleLeft.tsx b/source/01-global/icon/icons/AngleDoubleLeft.tsx index 37d90e40..f5f98d4b 100644 --- a/source/01-global/icon/icons/AngleDoubleLeft.tsx +++ b/source/01-global/icon/icons/AngleDoubleLeft.tsx @@ -1,3 +1,4 @@ +// organize-imports-ignore // This component is automatically generated. // SVGs should be added to icon/svgs. // See the project documentation for more information. diff --git a/source/01-global/icon/icons/AngleDoubleRight.tsx b/source/01-global/icon/icons/AngleDoubleRight.tsx index 94bcefe4..311901b8 100644 --- a/source/01-global/icon/icons/AngleDoubleRight.tsx +++ b/source/01-global/icon/icons/AngleDoubleRight.tsx @@ -1,3 +1,4 @@ +// organize-imports-ignore // This component is automatically generated. // SVGs should be added to icon/svgs. // See the project documentation for more information. diff --git a/source/01-global/icon/icons/AngleDown.tsx b/source/01-global/icon/icons/AngleDown.tsx index 3309634f..e59d0705 100644 --- a/source/01-global/icon/icons/AngleDown.tsx +++ b/source/01-global/icon/icons/AngleDown.tsx @@ -1,3 +1,4 @@ +// organize-imports-ignore // This component is automatically generated. // SVGs should be added to icon/svgs. // See the project documentation for more information. diff --git a/source/01-global/icon/icons/AngleLeft.tsx b/source/01-global/icon/icons/AngleLeft.tsx index 43c94127..c339004a 100644 --- a/source/01-global/icon/icons/AngleLeft.tsx +++ b/source/01-global/icon/icons/AngleLeft.tsx @@ -1,3 +1,4 @@ +// organize-imports-ignore // This component is automatically generated. // SVGs should be added to icon/svgs. // See the project documentation for more information. diff --git a/source/01-global/icon/icons/AngleRight.tsx b/source/01-global/icon/icons/AngleRight.tsx index dadf9aed..0eae1b4a 100644 --- a/source/01-global/icon/icons/AngleRight.tsx +++ b/source/01-global/icon/icons/AngleRight.tsx @@ -1,3 +1,4 @@ +// organize-imports-ignore // This component is automatically generated. // SVGs should be added to icon/svgs. // See the project documentation for more information. diff --git a/source/01-global/icon/icons/AngleUp.tsx b/source/01-global/icon/icons/AngleUp.tsx index 42fc47bb..963bc59a 100644 --- a/source/01-global/icon/icons/AngleUp.tsx +++ b/source/01-global/icon/icons/AngleUp.tsx @@ -1,3 +1,4 @@ +// organize-imports-ignore // This component is automatically generated. // SVGs should be added to icon/svgs. // See the project documentation for more information. diff --git a/source/01-global/icon/icons/Close.tsx b/source/01-global/icon/icons/Close.tsx index c229826e..3cf3ef11 100644 --- a/source/01-global/icon/icons/Close.tsx +++ b/source/01-global/icon/icons/Close.tsx @@ -1,3 +1,4 @@ +// organize-imports-ignore // This component is automatically generated. // SVGs should be added to icon/svgs. // See the project documentation for more information. diff --git a/source/01-global/icon/icons/Facebook.tsx b/source/01-global/icon/icons/Facebook.tsx index 84a7f066..8c6072c5 100644 --- a/source/01-global/icon/icons/Facebook.tsx +++ b/source/01-global/icon/icons/Facebook.tsx @@ -1,3 +1,4 @@ +// organize-imports-ignore // This component is automatically generated. // SVGs should be added to icon/svgs. // See the project documentation for more information. diff --git a/source/01-global/icon/icons/Linkedin.tsx b/source/01-global/icon/icons/Linkedin.tsx index 86ea4954..4f181267 100644 --- a/source/01-global/icon/icons/Linkedin.tsx +++ b/source/01-global/icon/icons/Linkedin.tsx @@ -1,3 +1,4 @@ +// organize-imports-ignore // This component is automatically generated. // SVGs should be added to icon/svgs. // See the project documentation for more information. diff --git a/source/01-global/icon/icons/Rss.tsx b/source/01-global/icon/icons/Rss.tsx index acad01d1..b5a13c77 100644 --- a/source/01-global/icon/icons/Rss.tsx +++ b/source/01-global/icon/icons/Rss.tsx @@ -1,3 +1,4 @@ +// organize-imports-ignore // This component is automatically generated. // SVGs should be added to icon/svgs. // See the project documentation for more information. diff --git a/source/01-global/icon/icons/Twitter.tsx b/source/01-global/icon/icons/Twitter.tsx index 72ddbd29..f4aa7487 100644 --- a/source/01-global/icon/icons/Twitter.tsx +++ b/source/01-global/icon/icons/Twitter.tsx @@ -1,3 +1,4 @@ +// organize-imports-ignore // This component is automatically generated. // SVGs should be added to icon/svgs. // See the project documentation for more information.