Skip to content

Commit 5731708

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

File tree

258 files changed

+1173
-756
lines changed

Some content is hidden

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

258 files changed

+1173
-756
lines changed

.github/workflows/lint-build-test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
uses: MetaMask/action-checkout-and-setup@v1
3737
with:
3838
is-high-risk-environment: false
39+
- name: Setup
40+
run: yarn workspace @metamask/design-system-tailwind-preset build
3941
- run: yarn lint
4042
- name: Require clean working directory
4143
shell: bash

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

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import React from 'react';
21
import '@metamask/design-tokens/src/css/index.css';
32
import '../tailwind.css';
4-
5-
import { Preview } from '@storybook/react';
6-
import { StoryContext, StoryFn } from '@storybook/react';
3+
import type { Preview } from '@storybook/react';
4+
import type { StoryContext, StoryFn } from '@storybook/react';
5+
import React from 'react';
76

87
export const globalTypes = {
98
colorScheme: {
@@ -22,13 +21,23 @@ export const globalTypes = {
2221
},
2322
};
2423

24+
/**
25+
*
26+
* @param Story
27+
* @param context
28+
*/
2529
function withColorScheme(Story: StoryFn, context: StoryContext) {
2630
const storyColorScheme = context.parameters.colorScheme;
2731
const globalColorScheme = context.globals.colorScheme;
2832

2933
// Use story-level parameter if available, otherwise fall back to global
3034
const colorScheme = storyColorScheme || globalColorScheme;
3135

36+
/**
37+
*
38+
* @param options0
39+
* @param options0.children
40+
*/
3241
function Wrapper({
3342
children,
3443
...props

0 commit comments

Comments
 (0)