Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Sep 6, 2024
1 parent 0562857 commit a3afd92
Show file tree
Hide file tree
Showing 3 changed files with 883 additions and 1,408 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@storybook/addon-interactions": "^8.2.9",
"@storybook/addon-mdx-gfm": "^8.2.9",
"@storybook/blocks": "^8.2.9",
"@storybook/eslint-config-storybook": "^4.0.0",
"@storybook/eslint-config-storybook": "^3.1.2",
"@storybook/icons": "^1.2.10",
"@storybook/react": "^8.2.9",
"@storybook/react-vite": "^8.2.9",
Expand Down
10 changes: 0 additions & 10 deletions src/screens/Onboarding/Onboarding.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export const MakeAChange = {
await userEvent.click(button);
}),
render: (args) => {
// eslint-disable-next-line react-hooks/rules-of-hooks
const [gitInfo, setGitInfo] = React.useState(args.gitInfo);
return (
<>
Expand Down Expand Up @@ -179,9 +178,7 @@ export const ChangesDetected = {
await userEvent.click(gitButton);
}),
render: (args) => {
// eslint-disable-next-line react-hooks/rules-of-hooks
const [gitInfo, setGitInfo] = React.useState(args.gitInfo);
// eslint-disable-next-line react-hooks/rules-of-hooks
const [localBuildProgress, setLocalBuildProgress] = React.useState(args.localBuildProgress);
return (
<>
Expand Down Expand Up @@ -231,9 +228,7 @@ export const RunningFirstTest = {
await userEvent.click(runTestsButton);
}),
render: (args) => {
// eslint-disable-next-line react-hooks/rules-of-hooks
const [gitInfo, setGitInfo] = React.useState(args.gitInfo);
// eslint-disable-next-line react-hooks/rules-of-hooks
const [localBuildProgress, setLocalBuildProgress] = React.useState(args.localBuildProgress);
return (
<>
Expand Down Expand Up @@ -284,9 +279,7 @@ export const RanFirstTestNoChanges = {
},
},
render: (args) => {
// eslint-disable-next-line react-hooks/rules-of-hooks
const [gitInfo, setGitInfo] = React.useState(args.gitInfo);
// eslint-disable-next-line react-hooks/rules-of-hooks
const [localBuildProgress, setLocalBuildProgress] = React.useState(args.localBuildProgress);
return (
<>
Expand Down Expand Up @@ -317,11 +310,8 @@ export const RanFirstTestNoChanges = {
export const ChangesFound = {
...RunningFirstTest,
render: (args) => {
// eslint-disable-next-line react-hooks/rules-of-hooks
const [gitInfo, setGitInfo] = React.useState(args.gitInfo);
// eslint-disable-next-line react-hooks/rules-of-hooks
const [localBuildProgress, setLocalBuildProgress] = React.useState(args.localBuildProgress);
// eslint-disable-next-line react-hooks/rules-of-hooks
const [lastBuildHasChanges, setLastBuildHasChanges] = React.useState(false);
return (
<>
Expand Down
Loading

0 comments on commit a3afd92

Please sign in to comment.