From 8a4619b5774a4a0496f64c16f87661356b07f957 Mon Sep 17 00:00:00 2001 From: Cassandra Date: Mon, 20 Jun 2022 16:42:52 +1000 Subject: [PATCH] chore: upgrade storybook to 6.5 (#2801) * chore: upgrade storybook to 6.5 * refactor: remove redundant story name assignments * chore: update imports of `@storybook/addon-docs/blocks` to `@storybook/addon-docs` * chore: update stories usage of argType.defaultValue (deprecated) * chore: remove usage of storybook .story annotations (deprecated) --- .eslintrc.js | 3 +- .../button/docs/deprecated.Button.stories.tsx | 4 +- .../form/docs/CheckboxField.stories.tsx | 24 +- .../form/docs/CheckboxGroup.stories.tsx | 13 +- .../form/docs/RadioField.stories.tsx | 24 +- .../form/docs/RadioGroup.stories.tsx | 13 +- draft-packages/form/docs/Slider.stories.tsx | 9 +- .../form/docs/TextAreaField.stories.tsx | 18 +- .../docs/GuidanceBlock.stories.tsx | 1 - .../docs/IllustrationScene.stories.tsx | 20 +- draft-packages/table/docs/Table.stories.tsx | 12 +- .../docs/TitleBlockZen.stories.tsx | 8 +- package.json | 31 +- packages/button/docs/Button.stories.tsx | 4 +- .../component-library/stories/Box.stories.tsx | 4 - .../docs/ColorTokens.stories.tsx | 2 - .../docs/pages/README.stories.mdx | 4 +- .../design-tokens/docs/pages/api.stories.mdx | 5 +- .../docs/pages/getting-started.stories.mdx | 2 +- .../pages/how-to-migrate-to-v3.stories.mdx | 2 +- .../pages/how-to-switch-themes.stories.mdx | 2 +- .../pages/how-to-use-in-react.stories.mdx | 2 +- .../pages/how-to-use-with-sass.stories.mdx | 2 +- .../docs/LoadingSpinner.stories.tsx | 10 +- .../docs/InlineNotification.stories.tsx | 1 - packages/typography/docs/Heading.stories.tsx | 2 - .../typography/docs/Paragraph.stories.tsx | 1 - yarn.lock | 1659 ++++++++--------- 28 files changed, 848 insertions(+), 1034 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 5b67de4462e..08d77bfad73 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -21,6 +21,7 @@ module.exports = { "prettier", "plugin:ssr-friendly/recommended", "plugin:jsx-a11y/recommended", + "plugin:storybook/recommended", ], parser: "@typescript-eslint/parser", parserOptions: { @@ -178,11 +179,9 @@ module.exports = { "no-new-wrappers": "error", "no-return-await": "error", "no-sequences": "error", - // The base no-shadow rule reports incorrect errors in typescript "no-shadow": "off", "@typescript-eslint/no-shadow": ["error"], - "no-sparse-arrays": "error", "no-template-curly-in-string": "error", "no-throw-literal": "error", diff --git a/draft-packages/button/docs/deprecated.Button.stories.tsx b/draft-packages/button/docs/deprecated.Button.stories.tsx index b7d2c336023..3455c09375d 100644 --- a/draft-packages/button/docs/deprecated.Button.stories.tsx +++ b/draft-packages/button/docs/deprecated.Button.stories.tsx @@ -808,9 +808,7 @@ export const ReversedButtons = () => ( ) export const DefaultKaizenSiteDemo = args =>