diff --git a/packages/console/package.json b/packages/console/package.json index 15bca8b00..72bc2d174 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -158,7 +158,8 @@ "files": [ "*.d.ts", "**/assets/docs/guides/types.ts", - "**/assets/docs/guides/**/index.ts", + "**/assets/docs/guides/*/index.ts", + "**/assets/docs/guides/*/components/**/*.tsx", "**/mdx-components*/*/index.tsx" ], "rules": { diff --git a/packages/console/src/assets/docs/guides/web-gpt-plugin/components/AiPluginJson.tsx b/packages/console/src/assets/docs/guides/web-gpt-plugin/components/AiPluginJson.tsx index 2c0d1c35d..2fb42afbd 100644 --- a/packages/console/src/assets/docs/guides/web-gpt-plugin/components/AiPluginJson.tsx +++ b/packages/console/src/assets/docs/guides/web-gpt-plugin/components/AiPluginJson.tsx @@ -5,7 +5,6 @@ import { openIdProviderConfigPath } from '@/consts/oidc'; import CodeEditor from '@/ds-components/CodeEditor'; import { type RequestError } from '@/hooks/use-api'; -// eslint-disable-next-line import/no-unused-modules export default function AiPluginJson() { const { data } = useSWR<SnakeCaseOidcConfig, RequestError>(openIdProviderConfigPath); const authorizationEndpoint = data?.authorization_endpoint ?? '[LOADING]'; diff --git a/packages/console/src/assets/docs/guides/web-gpt-plugin/components/AlwaysIssueRefreshToken.tsx b/packages/console/src/assets/docs/guides/web-gpt-plugin/components/AlwaysIssueRefreshToken.tsx index 6d5f1d4f5..37ad6199b 100644 --- a/packages/console/src/assets/docs/guides/web-gpt-plugin/components/AlwaysIssueRefreshToken.tsx +++ b/packages/console/src/assets/docs/guides/web-gpt-plugin/components/AlwaysIssueRefreshToken.tsx @@ -7,8 +7,6 @@ import Switch from '@/ds-components/Switch'; import useApi from '@/hooks/use-api'; import { GuideContext } from '@/pages/Applications/components/GuideV2'; -// Used in the guide -// eslint-disable-next-line import/no-unused-modules export default function AlwaysIssueRefreshToken() { const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' }); const { diff --git a/packages/console/src/assets/docs/guides/web-gpt-plugin/components/ClientBasics/index.tsx b/packages/console/src/assets/docs/guides/web-gpt-plugin/components/ClientBasics/index.tsx index 3a8865703..45b337219 100644 --- a/packages/console/src/assets/docs/guides/web-gpt-plugin/components/ClientBasics/index.tsx +++ b/packages/console/src/assets/docs/guides/web-gpt-plugin/components/ClientBasics/index.tsx @@ -7,7 +7,6 @@ import { GuideContext } from '@/pages/Applications/components/GuideV2'; import * as styles from './index.module.scss'; -// eslint-disable-next-line import/no-unused-modules export default function ClientBasics() { const { app: { id, secret },