chore: Make a twenty Eslint Rule to make sure that icons are imported from @/ui/icons (#1370)

Fix the imports

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: Mael FOSSO <fosso.mael.elvis@gmail.com>
This commit is contained in:
gitstart-twenty
2023-08-29 14:40:17 +03:00
committed by GitHub
parent f8df8b55d8
commit 96c41563cf
30 changed files with 57 additions and 36 deletions

View File

@ -1,4 +1,4 @@
import { TablerIconsProps } from '@tabler/icons-react';
import { TablerIconsProps } from '@/ui/icon';
import { ReactComponent as IconAddressBookRaw } from '../assets/address-book.svg';

View File

@ -1,3 +1,5 @@
/* eslint-disable no-restricted-imports */
export type { TablerIconsProps } from '@tabler/icons-react';
export {
IconAlertCircle,
IconAlertTriangle,
@ -29,6 +31,7 @@ export {
IconCopy,
IconCross,
IconCurrencyDollar,
IconDotsVertical,
IconEye,
IconEyeOff,
IconFileImport,
@ -39,7 +42,9 @@ export {
IconInbox,
IconLayoutSidebarLeftCollapse,
IconLayoutSidebarRightCollapse,
IconLayoutSidebarRightExpand,
IconLink,
IconLinkOff,
IconList,
IconLogout,
IconMail,