Skip to content

Commit 759625b

Browse files
chore: fixing eslint and ignoring critical warnings to fix in subsequent prs
1 parent 8032a4b commit 759625b

File tree

529 files changed

+1973
-1297
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

529 files changed

+1973
-1297
lines changed

apps/storybook-react/.storybook/main.ts

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import path, { join, dirname } from 'path';
44
/**
55
* This function is used to resolve the absolute path of a package.
66
* It is needed in projects that are set up within a monorepo.
7+
*
8+
* @param value
79
*/
810
// eslint-disable-next-line @typescript-eslint/no-explicit-any
911
function getAbsolutePath(value: string): any {

apps/storybook-react/.storybook/preview.tsx

+12-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from 'react';
22
import '@metamask/design-tokens/src/css/index.css';
33
import '../tailwind.css';
44

5-
import { Preview } from '@storybook/react';
6-
import { StoryContext, StoryFn } from '@storybook/react';
5+
import type { Preview } from '@storybook/react';
6+
import type { StoryContext, StoryFn } from '@storybook/react';
77

88
export const globalTypes = {
99
colorScheme: {
@@ -22,13 +22,23 @@ export const globalTypes = {
2222
},
2323
};
2424

25+
/**
26+
*
27+
* @param Story
28+
* @param context
29+
*/
2530
function withColorScheme(Story: StoryFn, context: StoryContext) {
2631
const storyColorScheme = context.parameters.colorScheme;
2732
const globalColorScheme = context.globals.colorScheme;
2833

2934
// Use story-level parameter if available, otherwise fall back to global
3035
const colorScheme = storyColorScheme || globalColorScheme;
3136

37+
/**
38+
*
39+
* @param options0
40+
* @param options0.children
41+
*/
3242
function Wrapper({
3343
children,
3444
...props

0 commit comments

Comments
 (0)