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:
parent
b29a984567
commit
655869b70c
4 changed files with 2 additions and 5 deletions
|
@ -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": {
|
||||||
|
|
|
@ -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]';
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 },
|
||||||
|
|
Loading…
Reference in a new issue