0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(console): allow guide tsx not being imported

Since we import them in the MDX files which is hard for ESLint to
track.
This commit is contained in:
Gao Sun 2023-08-16 12:52:33 +08:00
parent b29a984567
commit 655869b70c
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
4 changed files with 2 additions and 5 deletions

View file

@ -158,7 +158,8 @@
"files": [ "files": [
"*.d.ts", "*.d.ts",
"**/assets/docs/guides/types.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" "**/mdx-components*/*/index.tsx"
], ],
"rules": { "rules": {

View file

@ -5,7 +5,6 @@ import { openIdProviderConfigPath } from '@/consts/oidc';
import CodeEditor from '@/ds-components/CodeEditor'; import CodeEditor from '@/ds-components/CodeEditor';
import { type RequestError } from '@/hooks/use-api'; import { type RequestError } from '@/hooks/use-api';
// eslint-disable-next-line import/no-unused-modules
export default function AiPluginJson() { export default function AiPluginJson() {
const { data } = useSWR<SnakeCaseOidcConfig, RequestError>(openIdProviderConfigPath); const { data } = useSWR<SnakeCaseOidcConfig, RequestError>(openIdProviderConfigPath);
const authorizationEndpoint = data?.authorization_endpoint ?? '[LOADING]'; const authorizationEndpoint = data?.authorization_endpoint ?? '[LOADING]';

View file

@ -7,8 +7,6 @@ import Switch from '@/ds-components/Switch';
import useApi from '@/hooks/use-api'; import useApi from '@/hooks/use-api';
import { GuideContext } from '@/pages/Applications/components/GuideV2'; import { GuideContext } from '@/pages/Applications/components/GuideV2';
// Used in the guide
// eslint-disable-next-line import/no-unused-modules
export default function AlwaysIssueRefreshToken() { export default function AlwaysIssueRefreshToken() {
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' }); const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
const { const {

View file

@ -7,7 +7,6 @@ import { GuideContext } from '@/pages/Applications/components/GuideV2';
import * as styles from './index.module.scss'; import * as styles from './index.module.scss';
// eslint-disable-next-line import/no-unused-modules
export default function ClientBasics() { export default function ClientBasics() {
const { const {
app: { id, secret }, app: { id, secret },