-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: linting fixes #261
base: main
Are you sure you want to change the base?
chore: linting fixes #261
Conversation
@@ -3,10 +3,10 @@ import type { Meta, StoryObj } from '@storybook/react'; | |||
import { Text, TextColor } from '@metamask/design-system-react'; | |||
import README from './Shadows.mdx'; | |||
|
|||
interface ShadowSwatchProps { | |||
type ShadowSwatchProps = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use type instead of interface
@@ -2,7 +2,7 @@ import React, { FunctionComponent } from 'react'; | |||
import { lightTheme } from '../../../src'; | |||
import { Text, TextVariant } from '@metamask/design-system-react'; | |||
|
|||
interface ColorSwatchProps { | |||
type ColorSwatchProps = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use type instead of interface
import { Text, TextVariant } from '@metamask/design-system-react'; | ||
|
||
interface ColorSwatchGroupProps { | ||
type ColorSwatchGroupProps = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use type instead of interface
"jsx": "react", | ||
"types": ["react", "node", "jest"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs jsx and react for stories
"stories/**/*.tsx", | ||
"stories/**/*.ts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Includes stories folder in typescript checks but does not include them in build because we are excluding storybook files in tsconfig.packages.build.json
Description
This pull request addresses general housekeeping tasks and linting. It focuses on improving TypeScript linting and formatting consistency across the codebase. Changes include:
stories
folder and its files for design-tokens.prettier
to apply consistent formatting across all affected files.Related issues
Fixes: N/A
Manual testing steps
yarn lint
and ensure there are no TypeScript linting errors, including in thestories
folder.yarn prettier
to verify that all files adhere to the formatting rules.stories
in Storybook and confirm there are no regressions in functionality or display.Pre-merge author checklist
Pre-merge reviewer checklist