Skip to content

Commit c8a595a

Browse files
committed
docs(eslint no-any): add eslint-ignore comments for unavoidable any(s)
1 parent bfcebd2 commit c8a595a

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

apps/website/src/components/code-snippet/code-snippet.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Highlight } from '../highlight/highlight';
88
// /src/routes/docs/components/fluffy/modal/snippets/building-blocks.tsx
99
// /src/routes/docs/components/headless/modal/snippets/building-blocks.tsx
1010

11+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1112
const codeSnippets: any = import.meta.glob('/src/routes/docs/**/**/snippets/*', {
1213
as: 'raw',
1314
eager: isDev ? false : true,

apps/website/src/components/mdx-components/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { CodeSnippet } from '../code-snippet/code-snippet';
99
import { InstallSnippet } from '../install-snippet/install-snippet';
1010
import { Note } from '../note/note';
1111

12+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1213
export const components: Record<string, any> = {
1314
p: component$<QwikIntrinsicElements['p']>(({ ...props }) => {
1415
return (

apps/website/src/components/showcase/showcase.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { Highlight } from '../highlight/highlight';
1515
// /src/routes/docs/components/fluffy/modal/examples/hero.tsx
1616
// /src/routes/docs/components/headless/modal/examples/hero.tsx
1717

18+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1819
const metaGlobComponents: Record<string, any> = import.meta.glob(
1920
'/src/routes/docs/**/**/examples/*.tsx',
2021
{
@@ -23,6 +24,7 @@ const metaGlobComponents: Record<string, any> = import.meta.glob(
2324
},
2425
);
2526

27+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2628
const rawComponents: Record<string, any> = import.meta.glob(
2729
'/src/routes/docs/**/**/examples/*.tsx',
2830
{
@@ -39,6 +41,7 @@ export const Showcase = component$<ShowcaseProps>(({ name, ...props }) => {
3941
const location = useLocation();
4042
const componentPath = `/src/routes${location.url.pathname}examples/${name}.tsx`;
4143

44+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4245
const MetaGlobComponentSig = useSignal<Component<any>>();
4346
const componentCodeSig = useSignal<string>();
4447

0 commit comments

Comments
 (0)