Allow compound component exports in lint config
This commit is contained in:
+32
-1
@@ -62,7 +62,38 @@ export default tseslint.config(
|
|||||||
"react-refresh/only-export-components": [
|
"react-refresh/only-export-components": [
|
||||||
"warn",
|
"warn",
|
||||||
{
|
{
|
||||||
allowConstantExport: true
|
allowConstantExport: true,
|
||||||
|
allowExportNames: [
|
||||||
|
"Dialog",
|
||||||
|
"DialogClose",
|
||||||
|
"DialogPortal",
|
||||||
|
"DialogTrigger",
|
||||||
|
"DropdownMenu",
|
||||||
|
"DropdownMenuGroup",
|
||||||
|
"DropdownMenuPortal",
|
||||||
|
"DropdownMenuRadioGroup",
|
||||||
|
"DropdownMenuSub",
|
||||||
|
"DropdownMenuTrigger",
|
||||||
|
"Popover",
|
||||||
|
"PopoverAnchor",
|
||||||
|
"PopoverClose",
|
||||||
|
"PopoverPortal",
|
||||||
|
"PopoverTrigger",
|
||||||
|
"Select",
|
||||||
|
"SelectGroup",
|
||||||
|
"SelectValue",
|
||||||
|
"Sheet",
|
||||||
|
"SheetClose",
|
||||||
|
"SheetPortal",
|
||||||
|
"SheetTrigger",
|
||||||
|
"ToastProvider",
|
||||||
|
"Tooltip",
|
||||||
|
"TooltipPortal",
|
||||||
|
"TooltipProvider",
|
||||||
|
"TooltipTrigger",
|
||||||
|
"useFieldContext",
|
||||||
|
"useFieldIds"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user