Skip to content

Commit 682c26d

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

File tree

257 files changed

+1171
-754
lines changed

Some content is hidden

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

257 files changed

+1171
-754
lines changed

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

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ 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
9+
*/
10+
11+
/**
12+
*
13+
* @param value
714
*/
8-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
915
function getAbsolutePath(value: string): any {
1016
return dirname(require.resolve(join(value, 'package.json')));
1117
}

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)