Skip to content

Commit 3514249

Browse files
authored
Merge pull request #96 from forumone/fix-icon-build
Disable prettier-plugin-organize-imports for generated Icon files
2 parents 96db5e3 + 4cf484d commit 3514249

File tree

13 files changed

+16
-2
lines changed

13 files changed

+16
-2
lines changed

.prettierrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"useTabs": false,
1414
"overrides": [
1515
{
16-
"files": ["source/01-global/icon/**/*.tsx"],
16+
"files": ["source/01-global/icon/**/*.tsx", "source/01-global/icon/**/*.svg"],
1717
"options": {
18-
"organizeImportsSkipDestructiveCodeActions": true
18+
"plugins": []
1919
}
2020
}
2121
]

lib/icon-template.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@ const iconTemplate = (
5353
}
5454

5555
return tpl`
56+
// organize-imports-ignore
57+
5658
// This component is automatically generated.
5759
// SVGs should be added to icon/svgs.
5860
// See the project documentation for more information.
61+
5962
// tslint:disable:ordered-imports
6063
import clsx from 'clsx';
6164
${imports};

source/01-global/icon/icons/AngleDoubleLeft.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// organize-imports-ignore
12
// This component is automatically generated.
23
// SVGs should be added to icon/svgs.
34
// See the project documentation for more information.

source/01-global/icon/icons/AngleDoubleRight.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// organize-imports-ignore
12
// This component is automatically generated.
23
// SVGs should be added to icon/svgs.
34
// See the project documentation for more information.

source/01-global/icon/icons/AngleDown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// organize-imports-ignore
12
// This component is automatically generated.
23
// SVGs should be added to icon/svgs.
34
// See the project documentation for more information.

source/01-global/icon/icons/AngleLeft.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// organize-imports-ignore
12
// This component is automatically generated.
23
// SVGs should be added to icon/svgs.
34
// See the project documentation for more information.

source/01-global/icon/icons/AngleRight.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// organize-imports-ignore
12
// This component is automatically generated.
23
// SVGs should be added to icon/svgs.
34
// See the project documentation for more information.

source/01-global/icon/icons/AngleUp.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// organize-imports-ignore
12
// This component is automatically generated.
23
// SVGs should be added to icon/svgs.
34
// See the project documentation for more information.

source/01-global/icon/icons/Close.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// organize-imports-ignore
12
// This component is automatically generated.
23
// SVGs should be added to icon/svgs.
34
// See the project documentation for more information.

source/01-global/icon/icons/Facebook.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// organize-imports-ignore
12
// This component is automatically generated.
23
// SVGs should be added to icon/svgs.
34
// See the project documentation for more information.

0 commit comments

Comments
 (0)