Skip to content
Snippets Groups Projects
Unverified Commit e26e5822 authored by Alexander Polyankin's avatar Alexander Polyankin Committed by GitHub
Browse files

Forbid mantine usages outside of ui folder (#33456)

parent b3b71e40
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,7 @@
},
{
"name": "@mantine/core",
"importNames": ["createStyles"],
"message": "Avoid using `createStyles` because of breaking changes in the upcoming Mantine update"
"message": "Please import from `metabase/ui` instead."
}
]
}
......@@ -39,16 +38,13 @@
{
"files": ["lib/redux/hooks.ts"],
"rules": {
"no-restricted-imports": [
"error",
{
"patterns": [
"metabase-enterprise",
"metabase-enterprise/*",
"cljs/metabase.lib*"
]
}
]
"no-restricted-imports": 0
}
},
{
"files": ["ui/**/*.{js,jsx,ts,tsx}"],
"rules": {
"no-restricted-imports": 0
}
}
]
......
import { t } from "ttag";
import { Flex } from "@mantine/core";
import { Flex } from "metabase/ui";
import { TypeSidebarButton } from "metabase/search/components/TypeSearchSidebar/TypeSearchSidebar.styled";
import type { SearchModelType } from "metabase-types/api";
import { SEARCH_FILTERS } from "metabase/search/constants";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment