Skip to content

Commit

Permalink
chore: format all files
Browse files Browse the repository at this point in the history
  • Loading branch information
haideralsh committed Sep 27, 2023
1 parent 5b7f78e commit 0367fb9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
"new": "plop",

"start": "concurrently \"yarn build --watch\" \"start-storybook -p 9999\"",
"start:e2e": "yarn concurrently --kill-others \"yarn start --ci\" \"yarn wait-on http://localhost:9999 && cypress open\"",
"start:e2e": "yarn concurrently --kill-others \"yarn start --ci\" \"yarn wait-on http://localhost:9999 && cypress open\"",

"build": "rollup -c",
"build:storybook": "build-storybook",

"check": "yarn check:types && yarn check:lint && yarn check:format",
"check:types": "yarn run tsc && cd cypress && yarn run tsc",
"check:types": "tsc && cd cypress && tsc",
"check:lint": "eslint --config ./.eslintrc .'*/**/*.{js,ts,tsx}'",
"check:format": "prettier -c **/*.{ts,tsx,js}",

"fix": "yarn fix:lint && yarn fix:format",
"fix:lint": "yarn run check:lint --fix",
"fix:lint": "yarn check:lint --fix",
"fix:format": "prettier -w **/*.{ts,tsx,js}",

"test": "yarn run test:components && yarn run test:e2e",
"test:components": "yarn jest",
"test": "yarn test:components && yarn run test:e2e",
"test:components": "jest",
"test:e2e": "yarn build:storybook && yarn concurrently --success \"first\" --kill-others \"yarn http-server -p 9999 ./storybook-static\" \"yarn wait-on http://localhost:9999 && yarn cypress run\"",
"test:visual": "npx chromatic --project-token $CHROMATIC_TOKEN --exit-zero-on-changes"
},
Expand Down Expand Up @@ -173,7 +173,7 @@
},
"husky": {
"hooks": {
"pre-push": "yarn check:lint && yarn check:types && yarn check:format"
"pre-push": "yarn check"
}
},
"jest": {
Expand Down
4 changes: 2 additions & 2 deletions src/Banner/Banner.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ const menuData = {
{ name: "Manage account", href: "/" },
],
},
]
}
],
};
2 changes: 1 addition & 1 deletion src/Layout/Header.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import SummaryItem from "../Summary/SummaryItem";
import SummaryDivider from "../Summary/SummaryDivider";
import DropdownMenu from "../DropdownMenu/DropdownMenu";
import { theme } from "..";
import numberFromDimension from "../utils/numberFromDimension"
import numberFromDimension from "../utils/numberFromDimension";

export const Default = () => (
<Header
Expand Down
6 changes: 1 addition & 5 deletions src/Modal/Modal.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,7 @@ export const WithParentSelector = () => {

return (
<div id={id}>
<Modal
title="Modal Title"
footerContent={modalButtons}
parentSelector={() => document.getElementById(id)}
>
<Modal title="Modal Title" footerContent={modalButtons} parentSelector={() => document.getElementById(id)}>
Content
</Modal>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/ToastContainer/ToastFunction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { toastAnimationConfig } from "../Toast/Toast";

// We remove the "as" prop because the Alert is wrapped with a styled component
// resulting in a TypeScript overload error.
type AlertProps = Omit<OriginalAlertProps, "as">
type AlertProps = Omit<OriginalAlertProps, "as">;

type ToastFunction = (children: React.ReactNode, props?: AlertProps, options?: ToastOptions) => void;

Expand All @@ -19,7 +19,7 @@ type ToastFunctions = {
warning: ToastFunction;
};

type CustomToastProps = { id: string, isVisible: boolean } & AlertProps
type CustomToastProps = { id: string; isVisible: boolean } & AlertProps;

const CustomToast: React.FC<CustomToastProps> = ({ isVisible, id, children, ...props }) => {
const handleClose = () => {
Expand Down

0 comments on commit 0367fb9

Please sign in to comment.