diff --git a/docs/_snippets/angular-add-framework.md b/docs/_snippets/angular-add-framework.md index 353dd4006dbb..c95d6d67eb16 100644 --- a/docs/_snippets/angular-add-framework.md +++ b/docs/_snippets/angular-add-framework.md @@ -15,4 +15,3 @@ const config: StorybookConfig = { export default config; ``` - diff --git a/docs/_snippets/angular-project-compodoc-config.md b/docs/_snippets/angular-project-compodoc-config.md index ce7077448325..3dc124a7bb08 100644 --- a/docs/_snippets/angular-project-compodoc-config.md +++ b/docs/_snippets/angular-project-compodoc-config.md @@ -21,10 +21,10 @@ "-e", "json", "-d", - "." // Add this line to introspect the relevant files starting from the root directory of your project. + ".", // Add this line to introspect the relevant files starting from the root directory of your project. ], - "port": 6006 - } + "port": 6006, + }, }, "build-storybook": { "builder": "@storybook/angular:build-storybook", @@ -36,13 +36,13 @@ "-e", "json", "-d", - "." // Add this line to introspect the relevant files starting from the root directory of your project. + ".", // Add this line to introspect the relevant files starting from the root directory of your project. ], - "outputDir": "storybook-static" - } - } - } - } - } + "outputDir": "storybook-static", + }, + }, + }, + }, + }, } ``` diff --git a/docs/_snippets/before-each-in-meta-mock-date.md b/docs/_snippets/before-each-in-meta-mock-date.md index 9cceae05b42f..4731818ac9cb 100644 --- a/docs/_snippets/before-each-in-meta-mock-date.md +++ b/docs/_snippets/before-each-in-meta-mock-date.md @@ -173,4 +173,3 @@ export const Default: Story = { }, }; ``` - diff --git a/docs/_snippets/button-story-argtypes-with-subcategories.md b/docs/_snippets/button-story-argtypes-with-subcategories.md index 318ef14eed1d..818fa19b0e78 100644 --- a/docs/_snippets/button-story-argtypes-with-subcategories.md +++ b/docs/_snippets/button-story-argtypes-with-subcategories.md @@ -275,4 +275,3 @@ const meta: Meta = { export default meta; ``` - diff --git a/docs/_snippets/checkbox-story-grouped.md b/docs/_snippets/checkbox-story-grouped.md index 4183e90af9ec..209d25373a76 100644 --- a/docs/_snippets/checkbox-story-grouped.md +++ b/docs/_snippets/checkbox-story-grouped.md @@ -81,4 +81,3 @@ const meta: Meta = { export default meta; ``` - diff --git a/docs/_snippets/checkbox-story.md b/docs/_snippets/checkbox-story.md index 8f34aee9e443..a1343b992a0a 100644 --- a/docs/_snippets/checkbox-story.md +++ b/docs/_snippets/checkbox-story.md @@ -1,3 +1,4 @@ + ```mdx filename="Checkbox.mdx" renderer="common" language="mdx" import { Canvas, Meta } from '@storybook/blocks'; @@ -14,6 +15,7 @@ Use checkboxes to select one or more options from a list of choices. ``` + ```mdx filename="Checkbox.mdx" renderer="svelte" language="mdx" tabTitle="Svelte CSF" import { Canvas, Meta } from '@storybook/blocks'; @@ -30,6 +32,7 @@ Use checkboxes to select one or more options from a list of choices. ``` + ```mdx filename="Checkbox.mdx" renderer="svelte" language="mdx" tabTitle="CSF" import { Canvas, Meta } from '@storybook/blocks'; diff --git a/docs/_snippets/chromatic-install.md b/docs/_snippets/chromatic-install.md index 6eaaaab77d1d..b868ad7b2730 100644 --- a/docs/_snippets/chromatic-install.md +++ b/docs/_snippets/chromatic-install.md @@ -9,4 +9,3 @@ pnpm add --save-dev chromatic ```shell renderer="common" language="js" packageManager="yarn" yarn add --dev chromatic ``` - diff --git a/docs/_snippets/component-story-custom-args-icons.md b/docs/_snippets/component-story-custom-args-icons.md index ff60cab028f8..fdae31c4b277 100644 --- a/docs/_snippets/component-story-custom-args-icons.md +++ b/docs/_snippets/component-story-custom-args-icons.md @@ -34,4 +34,3 @@ const Template: Story = (args) => { }; }; ``` - diff --git a/docs/_snippets/csf-3-example-title.md b/docs/_snippets/csf-3-example-title.md index 4b5d0039ba2f..5d20e6dfd429 100644 --- a/docs/_snippets/csf-3-example-title.md +++ b/docs/_snippets/csf-3-example-title.md @@ -1,3 +1,4 @@ + ```mdx filename="src/components/Button/Button.mdx" renderer="common" language="mdx" import { Meta, Story } from '@storybook/blocks'; diff --git a/docs/_snippets/custom-docs-page.md b/docs/_snippets/custom-docs-page.md index 80fb45bcb7e6..32e344dfc44f 100644 --- a/docs/_snippets/custom-docs-page.md +++ b/docs/_snippets/custom-docs-page.md @@ -14,9 +14,8 @@ export function CustomDocumentationComponent() { } ``` -```md renderer="common" language="mdx" -{/* Custom-MDX-Documentation.mdx */} - + +```mdx filename="Custom-MDX-Documentation.mdx" renderer="common" language="mdx" # Replacing DocsPage with custom `MDX` content This file is a documentation-only `MDX`file to customize Storybook's [DocsPage](https://storybook.js.org/docs/writing-docs/docs-page#replacing-docspage). @@ -76,6 +75,7 @@ If you didn't include the title in the story's default export, use this approach ``` + ```ts filename="CustomDocumentationComponent.ts|tsx" renderer="common" language="ts" tabTitle="ts-component" export const CustomDocumentationComponent: React.FC = () => { return ( @@ -89,4 +89,3 @@ export const CustomDocumentationComponent: React.FC = () => { ); }; ``` - diff --git a/docs/_snippets/decorator-parameterized-in-preview.md b/docs/_snippets/decorator-parameterized-in-preview.md index f600132196bd..264c58243ed5 100644 --- a/docs/_snippets/decorator-parameterized-in-preview.md +++ b/docs/_snippets/decorator-parameterized-in-preview.md @@ -38,11 +38,15 @@ export default { case 'page': return ( // Your page layout is probably a little more complex than this ;) -
+
+ +
); case 'page-mobile': return ( -
+
+ +
); default: // In the default case, don't apply a layout @@ -68,11 +72,15 @@ const preview: Preview = { case 'page': return ( // Your page layout is probably a little more complex than this ;) -
+
+ +
); case 'page-mobile': return ( -
+
+ +
); default: // In the default case, don't apply a layout @@ -96,11 +104,15 @@ export default { case 'page': return ( // Your page layout is probably a little more complex than this ;) -
+
+ +
); case 'page-mobile': return ( -
+
+ +
); default: // In the default case, don't apply a layout @@ -124,11 +136,15 @@ const preview: Preview = { case 'page': return ( // Your page layout is probably a little more complex than this ;) -
+
+ +
); case 'page-mobile': return ( -
+
+ +
); default: // In the default case, don't apply a layout @@ -188,4 +204,3 @@ const preview: Preview = { export default preview; ``` - diff --git a/docs/_snippets/individual-snapshot-tests-portable-stories.md b/docs/_snippets/individual-snapshot-tests-portable-stories.md index 14490c429f15..8b2d518fc907 100644 --- a/docs/_snippets/individual-snapshot-tests-portable-stories.md +++ b/docs/_snippets/individual-snapshot-tests-portable-stories.md @@ -15,7 +15,7 @@ const compose = (entry) => { return composeStories(entry); } catch (e) { throw new Error( - `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}` + `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}`, ); } }; @@ -23,7 +23,7 @@ const compose = (entry) => { function getAllStoryFiles() { // Place the glob you want to match your stories files const storyFiles = glob.sync( - path.join(__dirname, 'stories/**/*.{stories,story}.{js,jsx,mjs,ts,tsx}') + path.join(__dirname, 'stories/**/*.{stories,story}.{js,jsx,mjs,ts,tsx}'), ); return storyFiles.map((filePath) => { @@ -45,7 +45,7 @@ describe('Stories Snapshots', () => { if (stories.length <= 0) { throw new Error( - `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.` + `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.`, ); } @@ -157,7 +157,7 @@ const compose = (entry) => { return composeStories(entry); } catch (error) { throw new Error( - `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${error}` + `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${error}`, ); } }; @@ -166,7 +166,7 @@ function getAllStoryFiles() { const storyFiles = Object.entries( import.meta.glob('./stories/**/*.(stories|story).@(js|jsx|mjs|ts|tsx)', { eager: true, - }) + }), ); return storyFiles.map(([filePath, storyFile]) => { @@ -185,7 +185,7 @@ describe('Stories Snapshots', () => { if (stories.length <= 0) { throw new Error( - `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.` + `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.`, ); } @@ -226,7 +226,7 @@ const compose = (entry: StoryFile): ReturnType> return composeStories(entry); } catch (e) { throw new Error( - `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}` + `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}`, ); } }; @@ -236,7 +236,7 @@ function getAllStoryFiles() { const storyFiles = Object.entries( import.meta.glob('./stories/**/*.(stories|story).@(js|jsx|mjs|ts|tsx)', { eager: true, - }) + }), ); return storyFiles.map(([filePath, storyFile]) => { @@ -256,7 +256,7 @@ describe('Stories Snapshots', () => { if (stories.length <= 0) { throw new Error( - `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.` + `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.`, ); } diff --git a/docs/_snippets/login-form-with-play-function.md b/docs/_snippets/login-form-with-play-function.md index 50cb48daa0d9..4488f94009e3 100644 --- a/docs/_snippets/login-form-with-play-function.md +++ b/docs/_snippets/login-form-with-play-function.md @@ -33,8 +33,8 @@ export const FilledForm: Story = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -70,8 +70,8 @@ export const FilledForm = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -112,8 +112,8 @@ export const FilledForm: Story = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -154,8 +154,8 @@ export const FilledForm: Story = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -191,8 +191,8 @@ export const FilledForm = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -235,8 +235,8 @@ export const FilledForm: Story = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -279,8 +279,8 @@ export const FilledForm: Story = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -357,8 +357,8 @@ export const FilledForm = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -439,8 +439,8 @@ export const FilledForm: Story = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -522,8 +522,8 @@ export const FilledForm: Story = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -568,8 +568,8 @@ export const FilledForm = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -619,8 +619,8 @@ export const FilledForm: Story = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -670,8 +670,8 @@ export const FilledForm: Story = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -705,8 +705,8 @@ export const FilledForm = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; @@ -744,8 +744,8 @@ export const FilledForm: Story = { // 👇 Assert DOM structure await expect( canvas.getByText( - 'Everything is perfect. Your account is ready and we should probably get you started!' - ) + 'Everything is perfect. Your account is ready and we should probably get you started!', + ), ).toBeInTheDocument(); }, }; diff --git a/docs/_snippets/mount-advanced.md b/docs/_snippets/mount-advanced.md index 7078b662914e..28059f865a20 100644 --- a/docs/_snippets/mount-advanced.md +++ b/docs/_snippets/mount-advanced.md @@ -8,7 +8,7 @@ export const Default: Story = { const canvas = await mount( // 👇 Pass data that is created inside of the play function to the component // For example, a just-generated UUID - + , ); await userEvent.click(await canvas.findByRole('menuitem', { name: /login to add/i })); @@ -16,7 +16,7 @@ export const Default: Story = { argTypes: { // 👇 Make the params prop un-controllable, as the value is always overriden in the play function. params: { control: { disable: true } }, - } + }, }; ``` @@ -30,7 +30,7 @@ export const Default = { const canvas = await mount( // 👇 Pass data that is created inside of the play function to the component // For example, a just-generated UUID - + , ); await userEvent.click(await canvas.findByRole('menuitem', { name: /login to add/i })); @@ -38,7 +38,7 @@ export const Default = { argTypes: { // 👇 Make the params prop un-controllable, as the value is always overriden in the play function. params: { control: { disable: true } }, - } + }, }; ``` @@ -53,7 +53,7 @@ export const Default: Story = { Page, // 👇 Pass data that is created inside of the play function to the component // For example, a just-generated UUID - { props: { ...args, params: { id: String(note.id) } } } + { props: { ...args, params: { id: String(note.id) } } }, ); await userEvent.click(await canvas.findByRole('menuitem', { name: /login to add/i })); @@ -61,7 +61,7 @@ export const Default: Story = { argTypes: { // 👇 Make the params prop un-controllable, as the value is always overriden in the play function. params: { control: { disable: true } }, - } + }, }; ``` @@ -76,7 +76,7 @@ export const Default = { Page, // 👇 Pass data that is created inside of the play function to the component // For example, a just-generated UUID - { props: { ...args, params: { id: String(note.id) } } } + { props: { ...args, params: { id: String(note.id) } } }, ); await userEvent.click(await canvas.findByRole('menuitem', { name: /login to add/i })); @@ -84,7 +84,7 @@ export const Default = { argTypes: { // 👇 Make the params prop un-controllable, as the value is always overriden in the play function. params: { control: { disable: true } }, - } + }, }; ``` @@ -99,7 +99,7 @@ export const Default: Story = { Page, // 👇 Pass data that is created inside of the play function to the component // For example, a just-generated UUID - { props: { ...args, params: { id: String(note.id) } } } + { props: { ...args, params: { id: String(note.id) } } }, ); await userEvent.click(await canvas.findByRole('menuitem', { name: /login to add/i })); @@ -107,7 +107,7 @@ export const Default: Story = { argTypes: { // 👇 Make the params prop un-controllable, as the value is always overriden in the play function. params: { control: { disable: true } }, - } + }, }; ``` @@ -122,7 +122,7 @@ export const Default = { Page, // 👇 Pass data that is created inside of the play function to the component // For example, a just-generated UUID - { props: { ...args, params: { id: String(note.id) } } } + { props: { ...args, params: { id: String(note.id) } } }, ); await userEvent.click(await canvas.findByRole('menuitem', { name: /login to add/i })); @@ -130,6 +130,6 @@ export const Default = { argTypes: { // 👇 Make the params prop un-controllable, as the value is always overriden in the play function. params: { control: { disable: true } }, - } + }, }; ``` diff --git a/docs/_snippets/msw-addon-configure-handlers-http.md b/docs/_snippets/msw-addon-configure-handlers-http.md index 91686558edbc..9065d22fe3d6 100644 --- a/docs/_snippets/msw-addon-configure-handlers-http.md +++ b/docs/_snippets/msw-addon-configure-handlers-http.md @@ -387,4 +387,3 @@ export const MockedError: Story = { }, }; ``` - diff --git a/docs/_snippets/my-component-play-function-composition.md b/docs/_snippets/my-component-play-function-composition.md index e3239b113329..1a02d5dbaba4 100644 --- a/docs/_snippets/my-component-play-function-composition.md +++ b/docs/_snippets/my-component-play-function-composition.md @@ -260,4 +260,3 @@ export const CombinedStories: Story = { }, }; ``` - diff --git a/docs/_snippets/my-component-story-import-static-asset.md b/docs/_snippets/my-component-story-import-static-asset.md index 5137ad370627..07a392841c0f 100644 --- a/docs/_snippets/my-component-story-import-static-asset.md +++ b/docs/_snippets/my-component-story-import-static-asset.md @@ -3,4 +3,3 @@ // And return a path to be included in a src attribute import imageFile from './static/image.png'; ``` - diff --git a/docs/_snippets/my-component-story.md b/docs/_snippets/my-component-story.md index c3b2872582fc..ef4056b6c598 100644 --- a/docs/_snippets/my-component-story.md +++ b/docs/_snippets/my-component-story.md @@ -12,4 +12,3 @@ export default { // Your stories ``` - diff --git a/docs/_snippets/my-component-with-custom-syntax-highlight.md b/docs/_snippets/my-component-with-custom-syntax-highlight.md index e660505bef6d..858a209eb202 100644 --- a/docs/_snippets/my-component-with-custom-syntax-highlight.md +++ b/docs/_snippets/my-component-with-custom-syntax-highlight.md @@ -1,6 +1,5 @@ -````md renderer="common" language="mdx" -{/* MyComponent.mdx */} - + +```mdx filename="MyComponent.mdx" renderer="common" language="mdx" import { Meta } from '@storybook/blocks'; import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; @@ -27,5 +26,4 @@ body { export const Component = () => { return ; }; -```` - +``` diff --git a/docs/_snippets/my-component-with-global-syntax-highlight.md b/docs/_snippets/my-component-with-global-syntax-highlight.md index abb60b8ab0ee..beffd37f13ca 100644 --- a/docs/_snippets/my-component-with-global-syntax-highlight.md +++ b/docs/_snippets/my-component-with-global-syntax-highlight.md @@ -1,6 +1,5 @@ -```md renderer="common" language="mdx" -{/* MyComponent.mdx */} - + +```mdx filename="MyComponent.mdx" renderer="common" language="mdx" import { Meta } from '@storybook/blocks'; diff --git a/docs/_snippets/nextjs-add-framework.md b/docs/_snippets/nextjs-add-framework.md index 0ee715bbedfe..bf9bb181c85e 100644 --- a/docs/_snippets/nextjs-add-framework.md +++ b/docs/_snippets/nextjs-add-framework.md @@ -17,4 +17,3 @@ const config: StorybookConfig = { export default config; ``` - diff --git a/docs/_snippets/portable-stories-jest-multi-snapshot-test.md b/docs/_snippets/portable-stories-jest-multi-snapshot-test.md index 4845a1abd69e..afd045b2d6cc 100644 --- a/docs/_snippets/portable-stories-jest-multi-snapshot-test.md +++ b/docs/_snippets/portable-stories-jest-multi-snapshot-test.md @@ -21,7 +21,7 @@ describe(options.suite, () => { const snapshotPath = path.join( storyDir, options.snapshotsDirName, - `${componentName}${options.snapshotExtension}` + `${componentName}${options.snapshotExtension}`, ); expect(document.body.firstChild).toMatchSpecificSnapshot(snapshotPath); }); diff --git a/docs/_snippets/portable-stories-jest-override-globals.md b/docs/_snippets/portable-stories-jest-override-globals.md index 43da554fca82..d4fe5433a0a7 100644 --- a/docs/_snippets/portable-stories-jest-override-globals.md +++ b/docs/_snippets/portable-stories-jest-override-globals.md @@ -9,7 +9,7 @@ test('renders in English', async () => { const Primary = composeStory( PrimaryStory, meta, - { globals: { locale: 'en' } } // 👈 Project annotations to override the locale + { globals: { locale: 'en' } }, // 👈 Project annotations to override the locale ); await Primary.run(); @@ -33,7 +33,7 @@ test('renders in English', async () => { const Primary = composeStory( PrimaryStory, meta, - { globals: { locale: 'en' } } // 👈 Project annotations to override the locale + { globals: { locale: 'en' } }, // 👈 Project annotations to override the locale ); await Primary.run(); diff --git a/docs/_snippets/portable-stories-jest-snapshot-test.md b/docs/_snippets/portable-stories-jest-snapshot-test.md index 20a146ab48e7..59d90c661069 100644 --- a/docs/_snippets/portable-stories-jest-snapshot-test.md +++ b/docs/_snippets/portable-stories-jest-snapshot-test.md @@ -12,7 +12,7 @@ const compose = (entry) => { return composeStories(entry); } catch (e) { throw new Error( - `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}` + `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}`, ); } }; @@ -20,7 +20,7 @@ const compose = (entry) => { function getAllStoryFiles() { // Place the glob you want to match your stories files const storyFiles = glob.sync( - path.join(__dirname, 'stories/**/*.{stories,story}.{js,jsx,mjs,ts,tsx}') + path.join(__dirname, 'stories/**/*.{stories,story}.{js,jsx,mjs,ts,tsx}'), ); return storyFiles.map((filePath) => { @@ -58,7 +58,7 @@ describe(options.suite, () => { if (stories.length <= 0) { throw new Error( - `No stories found for this module: ${title}. Make sure there is at least one valid story for this module, without a disable parameter, or add parameters.storyshots.disable in the default export of this file.` + `No stories found for this module: ${title}. Make sure there is at least one valid story for this module, without a disable parameter, or add parameters.storyshots.disable in the default export of this file.`, ); } @@ -100,7 +100,7 @@ const compose = (entry: StoryFile): ReturnType> return composeStories(entry); } catch (e) { throw new Error( - `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}` + `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}`, ); } }; @@ -108,7 +108,7 @@ const compose = (entry: StoryFile): ReturnType> function getAllStoryFiles() { // Place the glob you want to match your stories files const storyFiles = glob.sync( - path.join(__dirname, 'stories/**/*.{stories,story}.{js,jsx,mjs,ts,tsx}') + path.join(__dirname, 'stories/**/*.{stories,story}.{js,jsx,mjs,ts,tsx}'), ); return storyFiles.map((filePath) => { @@ -146,7 +146,7 @@ describe(options.suite, () => { if (stories.length <= 0) { throw new Error( - `No stories found for this module: ${title}. Make sure there is at least one valid story for this module, without a disable parameter, or add parameters.storyshots.disable in the default export of this file.` + `No stories found for this module: ${title}. Make sure there is at least one valid story for this module, without a disable parameter, or add parameters.storyshots.disable in the default export of this file.`, ); } diff --git a/docs/_snippets/portable-stories-playwright-ct-compose-stories.md b/docs/_snippets/portable-stories-playwright-ct-compose-stories.md index 1ee5cb978740..d02ec426775b 100644 --- a/docs/_snippets/portable-stories-playwright-ct-compose-stories.md +++ b/docs/_snippets/portable-stories-playwright-ct-compose-stories.md @@ -5,10 +5,7 @@ import { setProjectAnnotations } from '@storybook/react'; import * as addonAnnotations from 'my-addon/preview'; import * as previewAnnotations from './.storybook/preview'; -const annotations = setProjectAnnotations([ - previewAnnotations, - addonAnnotations, -]); +const annotations = setProjectAnnotations([previewAnnotations, addonAnnotations]); // Supports beforeAll hook from Storybook test.beforeAll(annotations.beforeAll); @@ -21,10 +18,7 @@ import { setProjectAnnotations } from '@storybook/vue3'; import * as addonAnnotations from 'my-addon/preview'; import * as previewAnnotations from './.storybook/preview'; -const annotations = setProjectAnnotations([ - previewAnnotations, - addonAnnotations, -]); +const annotations = setProjectAnnotations([previewAnnotations, addonAnnotations]); // Supports beforeAll hook from Storybook test.beforeAll(annotations.beforeAll); diff --git a/docs/_snippets/portable-stories-playwright-ct-override-globals.md b/docs/_snippets/portable-stories-playwright-ct-override-globals.md index edb963f1ff36..1d3ce4d3e4a5 100644 --- a/docs/_snippets/portable-stories-playwright-ct-override-globals.md +++ b/docs/_snippets/portable-stories-playwright-ct-override-globals.md @@ -6,7 +6,7 @@ import meta, { Primary } from './Button.stories'; export const PrimaryEnglish = composeStory( Primary, meta, - { globals: { locale: 'en' } } // 👈 Project annotations to override the locale + { globals: { locale: 'en' } }, // 👈 Project annotations to override the locale ); export const PrimarySpanish = composeStory(Primary, meta, { globals: { locale: 'es' } }); @@ -20,7 +20,7 @@ import meta, { Primary } from './Button.stories'; export const PrimaryEnglish = composeStory( Primary, meta, - { globals: { locale: 'en' } } // 👈 Project annotations to override the locale + { globals: { locale: 'en' } }, // 👈 Project annotations to override the locale ); export const PrimarySpanish = composeStory(Primary, meta, { globals: { locale: 'es' } }); diff --git a/docs/_snippets/portable-stories-vitest-multi-snapshot-test.md b/docs/_snippets/portable-stories-vitest-multi-snapshot-test.md index b2cece86e6f1..2dd1bd2b18f3 100644 --- a/docs/_snippets/portable-stories-vitest-multi-snapshot-test.md +++ b/docs/_snippets/portable-stories-vitest-multi-snapshot-test.md @@ -18,7 +18,7 @@ describe(options.suite, () => { const snapshotPath = path.join( storyDir, options.snapshotsDirName, - `${componentName}${options.snapshotExtension}` + `${componentName}${options.snapshotExtension}`, ); expect(document.body.firstChild).toMatchFileSnapshot(snapshotPath); }); diff --git a/docs/_snippets/portable-stories-vitest-override-globals.md b/docs/_snippets/portable-stories-vitest-override-globals.md index ae2a362b77ea..b954900b26a1 100644 --- a/docs/_snippets/portable-stories-vitest-override-globals.md +++ b/docs/_snippets/portable-stories-vitest-override-globals.md @@ -9,7 +9,7 @@ test('renders in English', async () => { const Primary = composeStory( PrimaryStory, meta, - { globals: { locale: 'en' } } // 👈 Project annotations to override the locale + { globals: { locale: 'en' } }, // 👈 Project annotations to override the locale ); await Primary.run(); @@ -33,7 +33,7 @@ test('renders in English', async () => { const Primary = composeStory( PrimaryStory, meta, - { globals: { locale: 'en' } } // 👈 Project annotations to override the locale + { globals: { locale: 'en' } }, // 👈 Project annotations to override the locale ); await Primary.run(); @@ -57,7 +57,7 @@ test('renders in English', async () => { const Primary = composeStory( PrimaryStory, meta, - { globals: { locale: 'en' } } // 👈 Project annotations to override the locale + { globals: { locale: 'en' } }, // 👈 Project annotations to override the locale ); await Primary.run(); diff --git a/docs/_snippets/portable-stories-vitest-snapshot-test.md b/docs/_snippets/portable-stories-vitest-snapshot-test.md index 07b8cf4c7728..bf5f130c6367 100644 --- a/docs/_snippets/portable-stories-vitest-snapshot-test.md +++ b/docs/_snippets/portable-stories-vitest-snapshot-test.md @@ -11,7 +11,7 @@ const compose = (entry) => { return composeStories(entry); } catch (e) { throw new Error( - `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}` + `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}`, ); } }; @@ -21,7 +21,7 @@ function getAllStoryFiles() { const storyFiles = Object.entries( import.meta.glob('./stories/**/*.(stories|story).@(js|jsx|mjs|ts|tsx)', { eager: true, - }) + }), ); return storyFiles.map(([filePath, storyFile]) => { @@ -60,7 +60,7 @@ describe(options.suite, () => { if (stories.length <= 0) { throw new Error( - `No stories found for this module: ${title}. Make sure there is at least one valid story for this module, without a disable parameter, or add parameters.storyshots.disable in the default export of this file.` + `No stories found for this module: ${title}. Make sure there is at least one valid story for this module, without a disable parameter, or add parameters.storyshots.disable in the default export of this file.`, ); } @@ -102,7 +102,7 @@ const compose = (entry: StoryFile): ReturnType> return composeStories(entry); } catch (e) { throw new Error( - `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}` + `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}`, ); } }; @@ -112,7 +112,7 @@ function getAllStoryFiles() { const storyFiles = Object.entries( import.meta.glob('./stories/**/*.(stories|story).@(js|jsx|mjs|ts|tsx)', { eager: true, - }) + }), ); return storyFiles.map(([filePath, storyFile]) => { @@ -151,7 +151,7 @@ describe(options.suite, () => { if (stories.length <= 0) { throw new Error( - `No stories found for this module: ${title}. Make sure there is at least one valid story for this module, without a disable parameter, or add parameters.storyshots.disable in the default export of this file.` + `No stories found for this module: ${title}. Make sure there is at least one valid story for this module, without a disable parameter, or add parameters.storyshots.disable in the default export of this file.`, ); } diff --git a/docs/_snippets/preview-storybook-production-mode.md b/docs/_snippets/preview-storybook-production-mode.md index 6ef4a93f6bef..e759fc366314 100644 --- a/docs/_snippets/preview-storybook-production-mode.md +++ b/docs/_snippets/preview-storybook-production-mode.md @@ -5,4 +5,3 @@ npx http-server ./path/to/build ```shell renderer="common" language="js" packageManager="pnpm" pnpm dlx http-server ./path/to/build ``` - diff --git a/docs/_snippets/snapshot-tests-portable-stories.md b/docs/_snippets/snapshot-tests-portable-stories.md index dfbd20efbde9..98db81fb07e0 100644 --- a/docs/_snippets/snapshot-tests-portable-stories.md +++ b/docs/_snippets/snapshot-tests-portable-stories.md @@ -12,7 +12,7 @@ const compose = (entry) => { return composeStories(entry); } catch (e) { throw new Error( - `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}` + `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}`, ); } }; @@ -20,7 +20,7 @@ const compose = (entry) => { function getAllStoryFiles() { // Place the glob you want to match your stories files const storyFiles = glob.sync( - path.join(__dirname, 'stories/**/*.{stories,story}.{js,jsx,mjs,ts,tsx}') + path.join(__dirname, 'stories/**/*.{stories,story}.{js,jsx,mjs,ts,tsx}'), ); return storyFiles.map((filePath) => { @@ -42,7 +42,7 @@ describe('Stories Snapshots', () => { if (stories.length <= 0) { throw new Error( - `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.` + `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.`, ); } @@ -81,7 +81,7 @@ const compose = (entry: StoryFile): ReturnType> return composeStories(entry); } catch (e) { throw new Error( - `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}` + `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}`, ); } }; @@ -89,7 +89,7 @@ const compose = (entry: StoryFile): ReturnType> function getAllStoryFiles() { // Place the glob you want to match your stories files const storyFiles = glob.sync( - path.join(__dirname, 'stories/**/*.{stories,story}.{js,jsx,mjs,ts,tsx}') + path.join(__dirname, 'stories/**/*.{stories,story}.{js,jsx,mjs,ts,tsx}'), ); return storyFiles.map((filePath) => { @@ -111,7 +111,7 @@ describe('Stories Snapshots', () => { if (stories.length <= 0) { throw new Error( - `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.` + `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.`, ); } @@ -142,7 +142,7 @@ const compose = (entry) => { return composeStories(entry); } catch (error) { throw new Error( - `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${error}` + `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${error}`, ); } }; @@ -151,7 +151,7 @@ function getAllStoryFiles() { const storyFiles = Object.entries( import.meta.glob('./stories/**/*.(stories|story).@(js|jsx|mjs|ts|tsx)', { eager: true, - }) + }), ); return storyFiles.map(([filePath, storyFile]) => { @@ -170,7 +170,7 @@ describe('Stories Snapshots', () => { if (stories.length <= 0) { throw new Error( - `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.` + `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.`, ); } @@ -209,7 +209,7 @@ const compose = (entry: StoryFile): ReturnType> return composeStories(entry); } catch (e) { throw new Error( - `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}` + `There was an issue composing stories for the module: ${JSON.stringify(entry)}, ${e}`, ); } }; @@ -219,7 +219,7 @@ function getAllStoryFiles() { const storyFiles = Object.entries( import.meta.glob('./stories/**/*.(stories|story).@(js|jsx|mjs|ts|tsx)', { eager: true, - }) + }), ); return storyFiles.map(([filePath, storyFile]) => { @@ -239,7 +239,7 @@ describe('Stories Snapshots', () => { if (stories.length <= 0) { throw new Error( - `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.` + `No stories found for this module: ${title}. Make sure there is at least one valid story for this module.`, ); } diff --git a/docs/_snippets/storybook-addons-preset-viteFinal.md b/docs/_snippets/storybook-addons-preset-viteFinal.md index 90e285529f0f..7d44c95edf83 100644 --- a/docs/_snippets/storybook-addons-preset-viteFinal.md +++ b/docs/_snippets/storybook-addons-preset-viteFinal.md @@ -3,7 +3,7 @@ export function ViteFinal(config, options = {}) { config.plugins.push( new MyCustomPlugin({ someOption: true, - }) + }), ); return config; @@ -15,7 +15,7 @@ export function ViteFinal(config: any, options: any = {}) { config.plugins.push( new MyCustomPlugin({ someOption: true, - }) + }), ); return config; diff --git a/docs/_snippets/storybook-auto-docs-baseline-example.md b/docs/_snippets/storybook-auto-docs-baseline-example.md index cf9367ae7795..9e4bb6b044c7 100644 --- a/docs/_snippets/storybook-auto-docs-baseline-example.md +++ b/docs/_snippets/storybook-auto-docs-baseline-example.md @@ -1,3 +1,4 @@ + ```mdx filename="Button.mdx" renderer="common" language="mdx" tabTitle="custom-title" import { Meta, Controls } from '@storybook/blocks'; @@ -22,6 +23,7 @@ Button has the following properties: ``` + ```mdx filename="Button.mdx" renderer="common" language="mdx" tabTitle="of-prop" import { Meta, Controls } from '@storybook/blocks'; diff --git a/docs/_snippets/storybook-auto-docs-custom-file.md b/docs/_snippets/storybook-auto-docs-custom-file.md index 62c9f39694db..d785141af9fa 100644 --- a/docs/_snippets/storybook-auto-docs-custom-file.md +++ b/docs/_snippets/storybook-auto-docs-custom-file.md @@ -1,3 +1,4 @@ + ```mdx filename="src/components/Select.mdx" renderer="common" language="mdx" # Select diff --git a/docs/_snippets/storybook-auto-docs-mdx-docs-docs-only-page.md b/docs/_snippets/storybook-auto-docs-mdx-docs-docs-only-page.md index ff0393c83549..7708908ba342 100644 --- a/docs/_snippets/storybook-auto-docs-mdx-docs-docs-only-page.md +++ b/docs/_snippets/storybook-auto-docs-mdx-docs-docs-only-page.md @@ -1,3 +1,4 @@ + ```mdx filename="ExampleDocumentation.mdx" renderer="common" language="mdx" import { Meta } from '@storybook/blocks'; @@ -12,6 +13,7 @@ import * as ExampleComponentStories from './ExampleComponent.stories'; ``` + ```mdx filename="ExampleDocumentation.mdx" renderer="svelte" language="mdx" tabTitle="Svelte CSF" import { Meta } from '@storybook/blocks'; @@ -26,6 +28,7 @@ import * as ExampleComponentStories from './ExampleComponent.stories.svelte'; ``` + ```mdx filename="ExampleDocumentation.mdx" renderer="svelte" language="mdx" tabTitle="CSF" import { Meta } from '@storybook/blocks'; diff --git a/docs/_snippets/storybook-auto-docs-mdx-docs-dos-donts.md b/docs/_snippets/storybook-auto-docs-mdx-docs-dos-donts.md index 31ace25a7efe..bee47faf47fc 100644 --- a/docs/_snippets/storybook-auto-docs-mdx-docs-dos-donts.md +++ b/docs/_snippets/storybook-auto-docs-mdx-docs-dos-donts.md @@ -1,3 +1,4 @@ + ```mdx filename="Guideline.mdx" renderer="common" language="mdx" diff --git a/docs/_snippets/storybook-auto-docs-mdx-docs-imports.md b/docs/_snippets/storybook-auto-docs-mdx-docs-imports.md index ad4e03830036..3a3c2b4993b5 100644 --- a/docs/_snippets/storybook-auto-docs-mdx-docs-imports.md +++ b/docs/_snippets/storybook-auto-docs-mdx-docs-imports.md @@ -1,15 +1,18 @@ + ```mdx filename="Checkbox.mdx" renderer="common" language="mdx" import { Canvas, Meta } from '@storybook/blocks'; import * as CheckboxStories from './Checkbox.stories'; ``` + ```mdx filename="Checkbox.mdx" renderer="svelte" language="mdx" tabTitle="Svelte CSF" import { Canvas, Meta } from '@storybook/blocks'; import * as CheckboxStories from './Checkbox.stories.svelte'; ``` + ```mdx filename="Checkbox.mdx" renderer="svelte" language="mdx" tabTitle="CSF" import { Canvas, Meta } from '@storybook/blocks'; diff --git a/docs/_snippets/storybook-auto-docs-mdx-docs-meta-block.md b/docs/_snippets/storybook-auto-docs-mdx-docs-meta-block.md index 1cefe5dbd78c..a20c65650b48 100644 --- a/docs/_snippets/storybook-auto-docs-mdx-docs-meta-block.md +++ b/docs/_snippets/storybook-auto-docs-mdx-docs-meta-block.md @@ -1,3 +1,4 @@ + ```mdx filename="Checkbox.mdx" renderer="common" language="mdx" import { Meta } from '@storybook/blocks'; @@ -6,6 +7,7 @@ import * as CheckboxStories from './Checkbox.stories'; ``` + ```mdx filename="Checkbox.mdx" renderer="svelte" language="mdx" tabTitle="Svelte CSF" import { Meta } from '@storybook/blocks'; @@ -14,6 +16,7 @@ import * as CheckboxStories from './Checkbox.stories.svelte'; ``` + ```mdx filename="Checkbox.mdx" renderer="svelte" language="mdx" tabTitle="CSF" import { Meta } from '@storybook/blocks'; diff --git a/docs/_snippets/storybook-auto-docs-mdx-docs-story.md b/docs/_snippets/storybook-auto-docs-mdx-docs-story.md index b0d52e9e6506..125453a92aff 100644 --- a/docs/_snippets/storybook-auto-docs-mdx-docs-story.md +++ b/docs/_snippets/storybook-auto-docs-mdx-docs-story.md @@ -1,3 +1,4 @@ + ```mdx filename="Checkbox.mdx" renderer="common" language="mdx" import { Canvas } from '@storybook/blocks'; @@ -14,6 +15,7 @@ import * as CheckboxStories from './Checkbox.stories.svelte'; ``` + ```mdx filename="Checkbox.mdx" renderer="svelte" language="mdx" tabTitle="CSF" import { Canvas } from '@storybook/blocks'; diff --git a/docs/_snippets/storybook-auto-docs-mdx-file.md b/docs/_snippets/storybook-auto-docs-mdx-file.md index f6d76fd9bf0a..bf6d896a4f8a 100644 --- a/docs/_snippets/storybook-auto-docs-mdx-file.md +++ b/docs/_snippets/storybook-auto-docs-mdx-file.md @@ -1,3 +1,4 @@ + ```mdx filename="Page.mdx" renderer="common" language="mdx" import { Canvas, Meta, Story } from '@storybook/blocks'; @@ -36,6 +37,7 @@ List items are used to group related content in a list. They must be nested with ``` + ```mdx filename="Page.mdx" renderer="svelte" language="mdx" tabTitle="Svelte CSF" import { Canvas, Meta, Story } from '@storybook/blocks'; @@ -74,6 +76,7 @@ List items are used to group related content in a list. They must be nested with ``` + ```mdx filename="Page.mdx" renderer="svelte" language="mdx" tabTitle="CSF" import { Canvas, Meta, Story } from '@storybook/blocks'; diff --git a/docs/_snippets/storybook-auto-docs-standalone-page.md b/docs/_snippets/storybook-auto-docs-standalone-page.md index 353d95aa5092..a8cf230f0e4e 100644 --- a/docs/_snippets/storybook-auto-docs-standalone-page.md +++ b/docs/_snippets/storybook-auto-docs-standalone-page.md @@ -1,3 +1,4 @@ + ```mdx filename="src/GettingStarted.mdx" renderer="common" language="mdx" # Getting Started diff --git a/docs/_snippets/storybook-auto-docs-starter-example.md b/docs/_snippets/storybook-auto-docs-starter-example.md index c24c71600cf7..84b1e932fdc5 100644 --- a/docs/_snippets/storybook-auto-docs-starter-example.md +++ b/docs/_snippets/storybook-auto-docs-starter-example.md @@ -1,3 +1,4 @@ + ```mdx filename="Button.mdx" renderer="common" language="mdx" import { Meta, Story } from '@storybook/blocks'; @@ -18,6 +19,7 @@ Buttons are often used for form submissions and to toggle elements into view. ``` + ```mdx filename="Button.mdx" renderer="svelte" language="mdx" tabTitle="Svelte CSF" import { Meta, Story } from '@storybook/blocks'; @@ -38,6 +40,7 @@ Buttons are often used for form submissions and to toggle elements into view. ``` + ```mdx filename="Button.mdx" renderer="svelte" language="mdx" tabTitle="CSF" import { Meta, Story } from '@storybook/blocks'; diff --git a/docs/_snippets/storybook-custom-docs-markdown.md b/docs/_snippets/storybook-custom-docs-markdown.md index 933ffd344d2e..ba09986a7012 100644 --- a/docs/_snippets/storybook-custom-docs-markdown.md +++ b/docs/_snippets/storybook-custom-docs-markdown.md @@ -1,3 +1,4 @@ + ```mdx filename="Changelog.mdx" renderer="common" language="mdx" import { Meta, Markdown } from '@storybook/blocks'; diff --git a/docs/_snippets/storybook-mdx-template-with-prop.md b/docs/_snippets/storybook-mdx-template-with-prop.md index 83533422aa56..27b9cb1f2831 100644 --- a/docs/_snippets/storybook-mdx-template-with-prop.md +++ b/docs/_snippets/storybook-mdx-template-with-prop.md @@ -1,3 +1,4 @@ + ```mdx filename="DocumentationTemplate.mdx" renderer="common" language="mdx" import { Meta, Title, Primary, Controls, Stories } from '@storybook/blocks'; @@ -28,5 +29,4 @@ The component accepts the following inputs (props): Listed below are additional variations of the component. - ``` diff --git a/docs/_snippets/storybook-preview-use-global-type.md b/docs/_snippets/storybook-preview-use-global-type.md index 994fb264a6e4..78141a96a16d 100644 --- a/docs/_snippets/storybook-preview-use-global-type.md +++ b/docs/_snippets/storybook-preview-use-global-type.md @@ -8,7 +8,7 @@ const preview: Preview = { (story) => `
${story}
`, ({ globals }) => { return { myTheme: globals['theme'] }; - } + }, ), ], }; diff --git a/docs/_snippets/storybook-preview-with-styled-components-decorator.md b/docs/_snippets/storybook-preview-with-styled-components-decorator.md index 93db7b71ccff..1a5e6fc62ddd 100644 --- a/docs/_snippets/storybook-preview-with-styled-components-decorator.md +++ b/docs/_snippets/storybook-preview-with-styled-components-decorator.md @@ -105,4 +105,3 @@ const preview: Preview = { export default preview; ``` - diff --git a/docs/_snippets/subpath-imports-config.md b/docs/_snippets/subpath-imports-config.md index 9d61b031d0f9..7c52d59099d7 100644 --- a/docs/_snippets/subpath-imports-config.md +++ b/docs/_snippets/subpath-imports-config.md @@ -4,22 +4,22 @@ "#api": { // storybook condition applies to Storybook "storybook": "./api.mock.ts", - "default": "./api.ts" + "default": "./api.ts", }, "#app/actions": { "storybook": "./app/actions.mock.ts", - "default": "./app/actions.ts" + "default": "./app/actions.ts", }, "#lib/session": { "storybook": "./lib/session.mock.ts", - "default": "./lib/session.ts" + "default": "./lib/session.ts", }, "#lib/db": { // test condition applies to test environments *and* Storybook "test": "./lib/db.mock.ts", - "default": "./lib/db.ts" + "default": "./lib/db.ts", }, - "#*": ["./*", "./*.ts", "./*.tsx"] - } + "#*": ["./*", "./*.ts", "./*.tsx"], + }, } ``` diff --git a/docs/_snippets/test-runner-custom-page-viewport.md b/docs/_snippets/test-runner-custom-page-viewport.md index 058dcc4a2550..3654eca05568 100644 --- a/docs/_snippets/test-runner-custom-page-viewport.md +++ b/docs/_snippets/test-runner-custom-page-viewport.md @@ -18,7 +18,7 @@ module.exports = { // Converts the viewport size from percentages to numbers [screen]: parseInt(size), }), - {} + {}, ); // Configures the Playwright page to use the viewport size page.setViewportSize(viewportSize); @@ -51,7 +51,7 @@ const config: TestRunnerConfig = { // Converts the viewport size from percentages to numbers [screen]: parseInt(size), }), - {} + {}, ); // Configures the Playwright page to use the viewport size page.setViewportSize(viewportSize); diff --git a/docs/_snippets/test-runner-tags-config.md b/docs/_snippets/test-runner-tags-config.md index ac72220f5952..5b8eb3a043c2 100644 --- a/docs/_snippets/test-runner-tags-config.md +++ b/docs/_snippets/test-runner-tags-config.md @@ -21,4 +21,3 @@ const config: TestRunnerConfig = { export default config; ``` - diff --git a/docs/_snippets/test-runner-tags-exclude.md b/docs/_snippets/test-runner-tags-exclude.md index f029d8bd0bd3..e2dbcbf675b3 100644 --- a/docs/_snippets/test-runner-tags-exclude.md +++ b/docs/_snippets/test-runner-tags-exclude.md @@ -17,4 +17,3 @@ const config: TestRunnerConfig = { export default config; ``` - diff --git a/docs/_snippets/test-runner-tags-skip.md b/docs/_snippets/test-runner-tags-skip.md index f8dede30e021..b57d78fb3d56 100644 --- a/docs/_snippets/test-runner-tags-skip.md +++ b/docs/_snippets/test-runner-tags-skip.md @@ -17,4 +17,3 @@ const config: TestRunnerConfig = { export default config; ``` - diff --git a/docs/_snippets/vitest-plugin-vitest-config.md b/docs/_snippets/vitest-plugin-vitest-config.md index 55a5670b312a..4cd240e86a44 100644 --- a/docs/_snippets/vitest-plugin-vitest-config.md +++ b/docs/_snippets/vitest-plugin-vitest-config.md @@ -34,7 +34,7 @@ export default mergeConfig( isolate: false, setupFiles: ['./.storybook/vitest.setup.ts'], }, - }) + }), ); ``` @@ -73,7 +73,7 @@ export default mergeConfig( isolate: false, setupFiles: ['./.storybook/vitest.setup.ts'], }, - }) + }), ); ``` @@ -113,6 +113,6 @@ export default mergeConfig( isolate: false, setupFiles: ['./.storybook/vitest.setup.ts'], }, - }) + }), ); ``` diff --git a/docs/_snippets/web-components-webpack5-transpilation.md b/docs/_snippets/web-components-webpack5-transpilation.md index 5c7bf66bcecf..632f520f7f32 100644 --- a/docs/_snippets/web-components-webpack5-transpilation.md +++ b/docs/_snippets/web-components-webpack5-transpilation.md @@ -3,7 +3,7 @@ export default { webpackFinal: async (config) => { // Find web-components rule for extra transpilation const webComponentsRule = config.module.rules.find( - (rule) => rule.use && rule.use.options && rule.use.options.babelrc === false + (rule) => rule.use && rule.use.options && rule.use.options.babelrc === false, ); // Add your own `my-library` webComponentsRule.test.push(new RegExp(`node_modules(\\/|\\\\)my-library(.*)\\.js$`)); @@ -20,7 +20,7 @@ const config: StorybookConfig = { webpackFinal: async (config) => { // Find web-components rule for extra transpilation const webComponentsRule = config.module.rules.find( - (rule) => rule.use && rule.use.options && rule.use.options.babelrc === false + (rule) => rule.use && rule.use.options && rule.use.options.babelrc === false, ); // Add your own `my-library` webComponentsRule.test.push(new RegExp(`node_modules(\\/|\\\\)my-library(.*)\\.js$`)); diff --git a/scripts/package.json b/scripts/package.json index e8903525a4f3..ee3aff691838 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -8,8 +8,8 @@ "build-package": "jiti ./build-package.ts", "check": "jiti ./prepare/check-scripts.ts", "check-package": "jiti ./check-package.ts", - "docs:prettier:check": "cd ../docs && prettier --check ./snippets || echo 'Please run \"docs:prettier:write\" in the \"scripts\" directory to fix the issues'", - "docs:prettier:write": "cd ../docs && prettier --write ./snippets", + "docs:prettier:check": "cd ../docs && prettier --check ./_snippets || echo 'Please run \"docs:prettier:write\" in the \"scripts\" directory to fix the issues'", + "docs:prettier:write": "cd ../docs && prettier --write ./_snippets", "generate-sandboxes": "jiti ./sandbox/generate.ts", "get-report-message": "jiti ./get-report-message.ts", "get-template": "jiti ./get-template.ts", @@ -163,10 +163,10 @@ "react-dom": "^18.3.1", "read-pkg-up": "^7.0.1", "recast": "^0.23.9", - "remark": "^14.0.3", + "remark": "^15.0.1", "remark-cli": "^12.0.1", - "remark-lint": "^9.1.2", - "remark-preset-lint-recommended": "^6.1.3", + "remark-lint": "^10.0.0", + "remark-preset-lint-recommended": "^7.0.0", "rollup": "^4.21.0", "rollup-plugin-dts": "^6.1.1", "semver": "^7.6.2", diff --git a/scripts/yarn.lock b/scripts/yarn.lock index aadc9d8c181b..015159a4b042 100644 --- a/scripts/yarn.lock +++ b/scripts/yarn.lock @@ -1648,10 +1648,10 @@ __metadata: react-dom: "npm:^18.3.1" read-pkg-up: "npm:^7.0.1" recast: "npm:^0.23.9" - remark: "npm:^14.0.3" + remark: "npm:^15.0.1" remark-cli: "npm:^12.0.1" - remark-lint: "npm:^9.1.2" - remark-preset-lint-recommended: "npm:^6.1.3" + remark-lint: "npm:^10.0.0" + remark-preset-lint-recommended: "npm:^7.0.0" rollup: "npm:^4.21.0" rollup-plugin-dts: "npm:^6.1.1" semver: "npm:^7.6.2" @@ -1895,6 +1895,15 @@ __metadata: languageName: node linkType: hard +"@types/hast@npm:^3.0.0": + version: 3.0.4 + resolution: "@types/hast@npm:3.0.4" + dependencies: + "@types/unist": "npm:*" + checksum: 10c0/3249781a511b38f1d330fd1e3344eed3c4e7ea8eff82e835d35da78e637480d36fad37a78be5a7aed8465d237ad0446abc1150859d0fde395354ea634decf9f7 + languageName: node + linkType: hard + "@types/http-errors@npm:*": version: 2.0.3 resolution: "@types/http-errors@npm:2.0.3" @@ -3911,6 +3920,20 @@ __metadata: languageName: node linkType: hard +"character-entities-html4@npm:^2.0.0": + version: 2.1.0 + resolution: "character-entities-html4@npm:2.1.0" + checksum: 10c0/fe61b553f083400c20c0b0fd65095df30a0b445d960f3bbf271536ae6c3ba676f39cb7af0b4bf2755812f08ab9b88f2feed68f9aebb73bb153f7a115fe5c6e40 + languageName: node + linkType: hard + +"character-entities-legacy@npm:^3.0.0": + version: 3.0.0 + resolution: "character-entities-legacy@npm:3.0.0" + checksum: 10c0/ec4b430af873661aa754a896a2b55af089b4e938d3d010fad5219299a6b6d32ab175142699ee250640678cd64bdecd6db3c9af0b8759ab7b155d970d84c4c7d1 + languageName: node + linkType: hard + "character-entities@npm:^2.0.0": version: 2.0.2 resolution: "character-entities@npm:2.0.2" @@ -3918,6 +3941,13 @@ __metadata: languageName: node linkType: hard +"character-reference-invalid@npm:^2.0.0": + version: 2.0.1 + resolution: "character-reference-invalid@npm:2.0.1" + checksum: 10c0/2ae0dec770cd8659d7e8b0ce24392d83b4c2f0eb4a3395c955dce5528edd4cc030a794cfa06600fcdd700b3f2de2f9b8e40e309c0011c4180e3be64a0b42e6a1 + languageName: node + linkType: hard + "check-error@npm:^2.1.1": version: 2.1.1 resolution: "check-error@npm:2.1.1" @@ -4091,6 +4121,13 @@ __metadata: languageName: node linkType: hard +"collapse-white-space@npm:^2.0.0": + version: 2.1.0 + resolution: "collapse-white-space@npm:2.1.0" + checksum: 10c0/b2e2800f4ab261e62eb27a1fbe853378296e3a726d6695117ed033e82d61fb6abeae4ffc1465d5454499e237005de9cfc52c9562dc7ca4ac759b9a222ef14453 + languageName: node + linkType: hard + "color-convert@npm:^1.9.0": version: 1.9.3 resolution: "color-convert@npm:1.9.3" @@ -7490,6 +7527,23 @@ __metadata: languageName: node linkType: hard +"is-alphabetical@npm:^2.0.0": + version: 2.0.1 + resolution: "is-alphabetical@npm:2.0.1" + checksum: 10c0/932367456f17237533fd1fc9fe179df77957271020b83ea31da50e5cc472d35ef6b5fb8147453274ffd251134472ce24eb6f8d8398d96dee98237cdb81a6c9a7 + languageName: node + linkType: hard + +"is-alphanumerical@npm:^2.0.0": + version: 2.0.1 + resolution: "is-alphanumerical@npm:2.0.1" + dependencies: + is-alphabetical: "npm:^2.0.0" + is-decimal: "npm:^2.0.0" + checksum: 10c0/4b35c42b18e40d41378293f82a3ecd9de77049b476f748db5697c297f686e1e05b072a6aaae2d16f54d2a57f85b00cbbe755c75f6d583d1c77d6657bd0feb5a2 + languageName: node + linkType: hard + "is-arguments@npm:^1.0.4": version: 1.1.1 resolution: "is-arguments@npm:1.1.1" @@ -7611,6 +7665,13 @@ __metadata: languageName: node linkType: hard +"is-decimal@npm:^2.0.0": + version: 2.0.1 + resolution: "is-decimal@npm:2.0.1" + checksum: 10c0/8085dd66f7d82f9de818fba48b9e9c0429cb4291824e6c5f2622e96b9680b54a07a624cfc663b24148b8e853c62a1c987cfe8b0b5a13f5156991afaf6736e334 + languageName: node + linkType: hard + "is-deflate@npm:^1.0.0": version: 1.0.0 resolution: "is-deflate@npm:1.0.0" @@ -7715,6 +7776,13 @@ __metadata: languageName: node linkType: hard +"is-hexadecimal@npm:^2.0.0": + version: 2.0.1 + resolution: "is-hexadecimal@npm:2.0.1" + checksum: 10c0/3eb60fe2f1e2bbc760b927dcad4d51eaa0c60138cf7fc671803f66353ad90c301605b502c7ea4c6bb0548e1c7e79dfd37b73b632652e3b76030bba603a7e9626 + languageName: node + linkType: hard + "is-interactive@npm:^1.0.0": version: 1.0.0 resolution: "is-interactive@npm:1.0.0" @@ -8955,6 +9023,32 @@ __metadata: languageName: node linkType: hard +"mdast-comment-marker@npm:^3.0.0": + version: 3.0.0 + resolution: "mdast-comment-marker@npm:3.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + mdast-util-mdx-expression: "npm:^2.0.0" + checksum: 10c0/157a893e07d5c6156085c4d5a61d62c0ce030c0dc4734bac91a04895553485d4bc2980030f678268038a23c371843c5252769459cf53d704714492ceaec949b6 + languageName: node + linkType: hard + +"mdast-util-directive@npm:^3.0.0": + version: 3.0.0 + resolution: "mdast-util-directive@npm:3.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + "@types/unist": "npm:^3.0.0" + devlop: "npm:^1.0.0" + mdast-util-from-markdown: "npm:^2.0.0" + mdast-util-to-markdown: "npm:^2.0.0" + parse-entities: "npm:^4.0.0" + stringify-entities: "npm:^4.0.0" + unist-util-visit-parents: "npm:^6.0.0" + checksum: 10c0/4a71b27f5f0c4ead5293a12d4118d4d832951ac0efdeba4af2dd78f5679f9cabee80feb3619f219a33674c12df3780def1bd3150d7298aaf0ef734f0dfbab999 + languageName: node + linkType: hard + "mdast-util-from-markdown@npm:^1.0.0": version: 1.3.1 resolution: "mdast-util-from-markdown@npm:1.3.1" @@ -9017,6 +9111,20 @@ __metadata: languageName: node linkType: hard +"mdast-util-mdx-expression@npm:^2.0.0": + version: 2.0.1 + resolution: "mdast-util-mdx-expression@npm:2.0.1" + dependencies: + "@types/estree-jsx": "npm:^1.0.0" + "@types/hast": "npm:^3.0.0" + "@types/mdast": "npm:^4.0.0" + devlop: "npm:^1.0.0" + mdast-util-from-markdown: "npm:^2.0.0" + mdast-util-to-markdown: "npm:^2.0.0" + checksum: 10c0/9a1e57940f66431f10312fa239096efa7627f375e7933b5d3162c0b5c1712a72ac87447aff2b6838d2bbd5c1311b188718cc90b33b67dc67a88550e0a6ef6183 + languageName: node + linkType: hard + "mdast-util-phrasing@npm:^3.0.0": version: 3.0.1 resolution: "mdast-util-phrasing@npm:3.0.1" @@ -10619,6 +10727,22 @@ __metadata: languageName: node linkType: hard +"parse-entities@npm:^4.0.0": + version: 4.0.1 + resolution: "parse-entities@npm:4.0.1" + dependencies: + "@types/unist": "npm:^2.0.0" + character-entities: "npm:^2.0.0" + character-entities-legacy: "npm:^3.0.0" + character-reference-invalid: "npm:^2.0.0" + decode-named-character-reference: "npm:^1.0.0" + is-alphanumerical: "npm:^2.0.0" + is-decimal: "npm:^2.0.0" + is-hexadecimal: "npm:^2.0.0" + checksum: 10c0/9dfa3b0dc43a913c2558c4bd625b1abcc2d6c6b38aa5724b141ed988471977248f7ad234eed57e1bc70b694dd15b0d710a04f66c2f7c096e35abd91962b7d926 + languageName: node + linkType: hard + "parse-git-config@npm:^2.0.3": version: 2.0.3 resolution: "parse-git-config@npm:2.0.3" @@ -11722,6 +11846,18 @@ __metadata: languageName: node linkType: hard +"remark-lint-final-newline@npm:^3.0.0": + version: 3.0.0 + resolution: "remark-lint-final-newline@npm:3.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + devlop: "npm:^1.0.0" + unified-lint-rule: "npm:^3.0.0" + vfile-location: "npm:^5.0.0" + checksum: 10c0/cdb9d81bec378ad4eed0fba6cb5a550089a4d2ef08f4d96d016bcfd794c1e401dd2ef72a0878155e68a5eacf61f5bb4c7e851badc3b024bdb99bdb5e5d774760 + languageName: node + linkType: hard + "remark-lint-hard-break-spaces@npm:^3.0.0": version: 3.1.2 resolution: "remark-lint-hard-break-spaces@npm:3.1.2" @@ -11736,6 +11872,18 @@ __metadata: languageName: node linkType: hard +"remark-lint-hard-break-spaces@npm:^4.0.0": + version: 4.0.0 + resolution: "remark-lint-hard-break-spaces@npm:4.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + unified-lint-rule: "npm:^3.0.0" + unist-util-position: "npm:^5.0.0" + unist-util-visit: "npm:^5.0.0" + checksum: 10c0/7e29c3dfdec634db1e072a3f5ad4c1db5adaac646e0230ed6305084119a8adbacd4679f38a204052b12f9c07a3b6440651ed4a979d2ddfb3605cc5660d0a19d9 + languageName: node + linkType: hard + "remark-lint-list-item-bullet-indent@npm:^4.0.0": version: 4.1.2 resolution: "remark-lint-list-item-bullet-indent@npm:4.1.2" @@ -11749,6 +11897,18 @@ __metadata: languageName: node linkType: hard +"remark-lint-list-item-bullet-indent@npm:^5.0.0": + version: 5.0.0 + resolution: "remark-lint-list-item-bullet-indent@npm:5.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + pluralize: "npm:^8.0.0" + unified-lint-rule: "npm:^3.0.0" + unist-util-position: "npm:^5.0.0" + checksum: 10c0/a59021d40cbeacbd6fe3e041e488b7cde027fd81c3b1447e0d910b6ff9c903c01748659b5ad8a4d8be341f263814df0cbdfd288fce0ff5a1266c634ad4624d46 + languageName: node + linkType: hard + "remark-lint-list-item-indent@npm:^3.0.0": version: 3.1.2 resolution: "remark-lint-list-item-indent@npm:3.1.2" @@ -11764,6 +11924,20 @@ __metadata: languageName: node linkType: hard +"remark-lint-list-item-indent@npm:^4.0.0": + version: 4.0.0 + resolution: "remark-lint-list-item-indent@npm:4.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + mdast-util-phrasing: "npm:^4.0.0" + pluralize: "npm:^8.0.0" + unified-lint-rule: "npm:^3.0.0" + unist-util-position: "npm:^5.0.0" + unist-util-visit-parents: "npm:^6.0.0" + checksum: 10c0/42658478fced511b503a17f4fa17bab17d82d3213ea7ca875c6a0c777f3c08e029a04149186295e494b131cdf222bd8db6c4f03a0dfcd4422c78edb1153ce9dc + languageName: node + linkType: hard + "remark-lint-no-blockquote-without-marker@npm:^5.0.0": version: 5.1.2 resolution: "remark-lint-no-blockquote-without-marker@npm:5.1.2" @@ -11779,6 +11953,23 @@ __metadata: languageName: node linkType: hard +"remark-lint-no-blockquote-without-marker@npm:^6.0.0": + version: 6.0.0 + resolution: "remark-lint-no-blockquote-without-marker@npm:6.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + devlop: "npm:^1.0.0" + mdast-util-directive: "npm:^3.0.0" + mdast-util-phrasing: "npm:^4.0.0" + pluralize: "npm:^8.0.0" + unified-lint-rule: "npm:^3.0.0" + unist-util-position: "npm:^5.0.0" + unist-util-visit-parents: "npm:^6.0.0" + vfile-location: "npm:^5.0.0" + checksum: 10c0/b1b8383e1faac73e1f647484e86d990c68388e7e156f78fad5650ab21581c33f38001d7332a1f088290cdc0e2ba267b63c178d6b7ce7a3636474aba4d7839ce7 + languageName: node + linkType: hard + "remark-lint-no-duplicate-definitions@npm:^3.0.0": version: 3.1.2 resolution: "remark-lint-no-duplicate-definitions@npm:3.1.2" @@ -11794,6 +11985,20 @@ __metadata: languageName: node linkType: hard +"remark-lint-no-duplicate-definitions@npm:^4.0.0": + version: 4.0.0 + resolution: "remark-lint-no-duplicate-definitions@npm:4.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + devlop: "npm:^1.0.0" + mdast-util-phrasing: "npm:^4.0.0" + unified-lint-rule: "npm:^3.0.0" + unist-util-visit-parents: "npm:^6.0.0" + vfile-message: "npm:^4.0.0" + checksum: 10c0/1307f14ef337b843cb4e4069cb4b6744c5ad8395d7e692f98e379a99f32cda5065a9d4b575808ed27f614950401c725d10878f962a7c0ca290f45c1b60b0345e + languageName: node + linkType: hard + "remark-lint-no-heading-content-indent@npm:^4.0.0": version: 4.1.2 resolution: "remark-lint-no-heading-content-indent@npm:4.1.2" @@ -11810,6 +12015,20 @@ __metadata: languageName: node linkType: hard +"remark-lint-no-heading-content-indent@npm:^5.0.0": + version: 5.0.0 + resolution: "remark-lint-no-heading-content-indent@npm:5.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + mdast-util-phrasing: "npm:^4.0.0" + pluralize: "npm:^8.0.0" + unified-lint-rule: "npm:^3.0.0" + unist-util-position: "npm:^5.0.0" + unist-util-visit-parents: "npm:^6.0.0" + checksum: 10c0/74b1cc130e3884719d8f6eb11b4a42d3c750721884b2eb0eeb80ad2150b6e493aa2d0fa69f632243405112425f072b339d413c560202244d0553c19799d1cb40 + languageName: node + linkType: hard + "remark-lint-no-inline-padding@npm:^4.0.0": version: 4.1.2 resolution: "remark-lint-no-inline-padding@npm:4.1.2" @@ -11839,6 +12058,20 @@ __metadata: languageName: node linkType: hard +"remark-lint-no-literal-urls@npm:^4.0.0": + version: 4.0.0 + resolution: "remark-lint-no-literal-urls@npm:4.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + mdast-util-to-string: "npm:^4.0.0" + micromark-util-character: "npm:^2.0.0" + unified-lint-rule: "npm:^3.0.0" + unist-util-position: "npm:^5.0.0" + unist-util-visit-parents: "npm:^6.0.0" + checksum: 10c0/bad37ed3052abf671fd93c3e79f2502536a75f8fe3e9e161811deb8ceac36066dd536dd58d9baf597fcd76922cd4bcce7f15381318a03bb01d7ec5db03231f0f + languageName: node + linkType: hard + "remark-lint-no-shortcut-reference-image@npm:^3.0.0": version: 3.1.2 resolution: "remark-lint-no-shortcut-reference-image@npm:3.1.2" @@ -11852,6 +12085,17 @@ __metadata: languageName: node linkType: hard +"remark-lint-no-shortcut-reference-image@npm:^4.0.0": + version: 4.0.0 + resolution: "remark-lint-no-shortcut-reference-image@npm:4.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + unified-lint-rule: "npm:^3.0.0" + unist-util-visit-parents: "npm:^6.0.0" + checksum: 10c0/3ca7b835a06966b10edf6dbe5b08156120fa6d054942cbbd5a823dc2a94e70e1fda9abadebefe24fcbd2324f1d2eefe8aa9ec741f05b865a34c2a67aef401a10 + languageName: node + linkType: hard + "remark-lint-no-shortcut-reference-link@npm:^3.0.0": version: 3.1.2 resolution: "remark-lint-no-shortcut-reference-link@npm:3.1.2" @@ -11865,6 +12109,17 @@ __metadata: languageName: node linkType: hard +"remark-lint-no-shortcut-reference-link@npm:^4.0.0": + version: 4.0.0 + resolution: "remark-lint-no-shortcut-reference-link@npm:4.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + unified-lint-rule: "npm:^3.0.0" + unist-util-visit-parents: "npm:^6.0.0" + checksum: 10c0/e29d044ef92723b77987f7d9666c27455531cc99a5eb260a9640c52252599af1acce80bafd9c5e3bfdae93aa02cefcc7524143a31fafdf5c1521424277b2f55f + languageName: node + linkType: hard + "remark-lint-no-undefined-references@npm:^4.0.0": version: 4.2.1 resolution: "remark-lint-no-undefined-references@npm:4.2.1" @@ -11881,6 +12136,22 @@ __metadata: languageName: node linkType: hard +"remark-lint-no-undefined-references@npm:^5.0.0": + version: 5.0.0 + resolution: "remark-lint-no-undefined-references@npm:5.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + collapse-white-space: "npm:^2.0.0" + devlop: "npm:^1.0.0" + micromark-util-normalize-identifier: "npm:^2.0.0" + unified-lint-rule: "npm:^3.0.0" + unist-util-position: "npm:^5.0.0" + unist-util-visit-parents: "npm:^6.0.0" + vfile-location: "npm:^5.0.0" + checksum: 10c0/74423a32ed68926ada9826a91201c86af3d2aaf2ab8349c87262b553f947a78b3dd4a961b1120ea41c3a721e93380fe81438a11a03748c0445dcb3c8b431d182 + languageName: node + linkType: hard + "remark-lint-no-unused-definitions@npm:^3.0.0": version: 3.1.2 resolution: "remark-lint-no-unused-definitions@npm:3.1.2" @@ -11894,6 +12165,18 @@ __metadata: languageName: node linkType: hard +"remark-lint-no-unused-definitions@npm:^4.0.0": + version: 4.0.0 + resolution: "remark-lint-no-unused-definitions@npm:4.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + devlop: "npm:^1.0.0" + unified-lint-rule: "npm:^3.0.0" + unist-util-visit: "npm:^5.0.0" + checksum: 10c0/bc00d51a3006175ffbeaeacb84fef3045fc3cac07ca934f54380cf5858c4cf4202248c8ed7bb199555de7ccc571732a6020839f60e67d9db6eb3c832be0ba7bb + languageName: node + linkType: hard + "remark-lint-ordered-list-marker-style@npm:^3.0.0": version: 3.1.2 resolution: "remark-lint-ordered-list-marker-style@npm:3.1.2" @@ -11908,6 +12191,32 @@ __metadata: languageName: node linkType: hard +"remark-lint-ordered-list-marker-style@npm:^4.0.0": + version: 4.0.0 + resolution: "remark-lint-ordered-list-marker-style@npm:4.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + mdast-util-phrasing: "npm:^4.0.0" + micromark-util-character: "npm:^2.0.0" + unified-lint-rule: "npm:^3.0.0" + unist-util-position: "npm:^5.0.0" + unist-util-visit-parents: "npm:^6.0.0" + vfile-message: "npm:^4.0.0" + checksum: 10c0/ab6b5527653fec599ac62d135a79045263a0d4c13cc9e3d7db0bf797ac63d6bc85484bd1b97831e8b6d712cf7c6e1f87ad7e618e4e5dd78d05d82d4757a27df6 + languageName: node + linkType: hard + +"remark-lint@npm:^10.0.0": + version: 10.0.0 + resolution: "remark-lint@npm:10.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + remark-message-control: "npm:^8.0.0" + unified: "npm:^11.0.0" + checksum: 10c0/5f1244c9a576ee12ccb4c19fdac92530e09401e4a89c1a4122131f8213e96a07dab2f16c4cd46d1ab3ec1d8af9d8be82902af775e0436aa19715a70672347bd7 + languageName: node + linkType: hard + "remark-lint@npm:^9.0.0, remark-lint@npm:^9.1.2": version: 9.1.2 resolution: "remark-lint@npm:9.1.2" @@ -11932,14 +12241,15 @@ __metadata: languageName: node linkType: hard -"remark-parse@npm:^10.0.0": - version: 10.0.2 - resolution: "remark-parse@npm:10.0.2" +"remark-message-control@npm:^8.0.0": + version: 8.0.0 + resolution: "remark-message-control@npm:8.0.0" dependencies: - "@types/mdast": "npm:^3.0.0" - mdast-util-from-markdown: "npm:^1.0.0" - unified: "npm:^10.0.0" - checksum: 10c0/30cb8f2790380b1c7370a1c66cda41f33a7dc196b9e440a00e2675037bca55aea868165a8204e0cdbacc27ef4a3bdb7d45879826bd6efa07d9fdf328cb67a332 + "@types/mdast": "npm:^4.0.0" + mdast-comment-marker: "npm:^3.0.0" + unified-message-control: "npm:^5.0.0" + vfile: "npm:^6.0.0" + checksum: 10c0/7741fd954f141d806713d17c12c89278b595c8da3ac616e79d92b3c3e01aa12262cc6efa5449c1965b1215470d6c41e824ab991f42e151f0086065534e2297d0 languageName: node linkType: hard @@ -11980,14 +12290,26 @@ __metadata: languageName: node linkType: hard -"remark-stringify@npm:^10.0.0": - version: 10.0.3 - resolution: "remark-stringify@npm:10.0.3" - dependencies: - "@types/mdast": "npm:^3.0.0" - mdast-util-to-markdown: "npm:^1.0.0" - unified: "npm:^10.0.0" - checksum: 10c0/682f26c66ce72e97a00bff75774b68f8008184dc1e4407039e186de896b5cd5d336aa65842bf131f4826a7415acdcd01d14ba59ff41b421a250c23fb187cda85 +"remark-preset-lint-recommended@npm:^7.0.0": + version: 7.0.0 + resolution: "remark-preset-lint-recommended@npm:7.0.0" + dependencies: + remark-lint: "npm:^10.0.0" + remark-lint-final-newline: "npm:^3.0.0" + remark-lint-hard-break-spaces: "npm:^4.0.0" + remark-lint-list-item-bullet-indent: "npm:^5.0.0" + remark-lint-list-item-indent: "npm:^4.0.0" + remark-lint-no-blockquote-without-marker: "npm:^6.0.0" + remark-lint-no-duplicate-definitions: "npm:^4.0.0" + remark-lint-no-heading-content-indent: "npm:^5.0.0" + remark-lint-no-literal-urls: "npm:^4.0.0" + remark-lint-no-shortcut-reference-image: "npm:^4.0.0" + remark-lint-no-shortcut-reference-link: "npm:^4.0.0" + remark-lint-no-undefined-references: "npm:^5.0.0" + remark-lint-no-unused-definitions: "npm:^4.0.0" + remark-lint-ordered-list-marker-style: "npm:^4.0.0" + unified: "npm:^11.0.0" + checksum: 10c0/ee425c9a3733e077889de9e644d6892f846edc4efb23d6a9b1e5e9c0d74d09f0b79cb0bb2d6cd1bca920288435a21a1c034cd6ab692ed00280b26f4f023333e1 languageName: node linkType: hard @@ -12002,19 +12324,7 @@ __metadata: languageName: node linkType: hard -"remark@npm:^14.0.3": - version: 14.0.3 - resolution: "remark@npm:14.0.3" - dependencies: - "@types/mdast": "npm:^3.0.0" - remark-parse: "npm:^10.0.0" - remark-stringify: "npm:^10.0.0" - unified: "npm:^10.0.0" - checksum: 10c0/d4dbef29abdb62b01ae632d787bf0038af819df3e4308e037754ece8cb9c4d8ea52e8629174a47b5c46a7448cd22feba5dfea09b3ffdaa8c745b4c9bdd01b41d - languageName: node - linkType: hard - -"remark@npm:^15.0.0": +"remark@npm:^15.0.0, remark@npm:^15.0.1": version: 15.0.1 resolution: "remark@npm:15.0.1" dependencies: @@ -12808,6 +13118,13 @@ __metadata: languageName: node linkType: hard +"space-separated-tokens@npm:^2.0.0": + version: 2.0.2 + resolution: "space-separated-tokens@npm:2.0.2" + checksum: 10c0/6173e1d903dca41dcab6a2deed8b4caf61bd13b6d7af8374713500570aa929ff9414ae09a0519f4f8772df993300305a395d4871f35bc4ca72b6db57e1f30af8 + languageName: node + linkType: hard + "spdx-correct@npm:^3.0.0": version: 3.2.0 resolution: "spdx-correct@npm:3.2.0" @@ -13088,6 +13405,16 @@ __metadata: languageName: node linkType: hard +"stringify-entities@npm:^4.0.0": + version: 4.0.4 + resolution: "stringify-entities@npm:4.0.4" + dependencies: + character-entities-html4: "npm:^2.0.0" + character-entities-legacy: "npm:^3.0.0" + checksum: 10c0/537c7e656354192406bdd08157d759cd615724e9d0873602d2c9b2f6a5c0a8d0b1d73a0a08677848105c5eebac6db037b57c0b3a4ec86331117fa7319ed50448 + languageName: node + linkType: hard + "strip-ansi-cjs@npm:strip-ansi@^6.0.1, strip-ansi@npm:^6.0.0, strip-ansi@npm:^6.0.1": version: 6.0.1 resolution: "strip-ansi@npm:6.0.1" @@ -13956,6 +14283,18 @@ __metadata: languageName: node linkType: hard +"unified-lint-rule@npm:^3.0.0": + version: 3.0.0 + resolution: "unified-lint-rule@npm:3.0.0" + dependencies: + "@types/unist": "npm:^3.0.0" + trough: "npm:^2.0.0" + unified: "npm:^11.0.0" + vfile: "npm:^6.0.0" + checksum: 10c0/f7d508b5db7298b689525b6200937faf0c4f5ec2c942d09fe6905895ab1869d3c9ad7365e277ebba3846319221ff1a7d7901456bff8ce3400724c1e79bf912bd + languageName: node + linkType: hard + "unified-message-control@npm:^4.0.0": version: 4.0.0 resolution: "unified-message-control@npm:4.0.0" @@ -13970,6 +14309,22 @@ __metadata: languageName: node linkType: hard +"unified-message-control@npm:^5.0.0": + version: 5.0.0 + resolution: "unified-message-control@npm:5.0.0" + dependencies: + "@types/unist": "npm:^3.0.0" + devlop: "npm:^1.0.0" + space-separated-tokens: "npm:^2.0.0" + unist-util-is: "npm:^6.0.0" + unist-util-visit: "npm:^5.0.0" + vfile: "npm:^6.0.0" + vfile-location: "npm:^5.0.0" + vfile-message: "npm:^4.0.0" + checksum: 10c0/0884d3f6c6fddff1184bbd0b3fcf463e11b2963a866513902472768dd9116abfdd24b0ae1b8525a5a3b4c95464f9be4669205a4e762c63faa08829ccc2fa0083 + languageName: node + linkType: hard + "unified@npm:^10.0.0, unified@npm:^10.1.0": version: 10.1.2 resolution: "unified@npm:10.1.2" @@ -14088,6 +14443,15 @@ __metadata: languageName: node linkType: hard +"unist-util-position@npm:^5.0.0": + version: 5.0.0 + resolution: "unist-util-position@npm:5.0.0" + dependencies: + "@types/unist": "npm:^3.0.0" + checksum: 10c0/dde3b31e314c98f12b4dc6402f9722b2bf35e96a4f2d463233dd90d7cde2d4928074a7a11eff0a5eb1f4e200f27fc1557e0a64a7e8e4da6558542f251b1b7400 + languageName: node + linkType: hard + "unist-util-stringify-position@npm:^3.0.0": version: 3.0.3 resolution: "unist-util-stringify-position@npm:3.0.3" @@ -14452,6 +14816,16 @@ __metadata: languageName: node linkType: hard +"vfile-location@npm:^5.0.0": + version: 5.0.3 + resolution: "vfile-location@npm:5.0.3" + dependencies: + "@types/unist": "npm:^3.0.0" + vfile: "npm:^6.0.0" + checksum: 10c0/1711f67802a5bc175ea69750d59863343ed43d1b1bb25c0a9063e4c70595e673e53e2ed5cdbb6dcdc370059b31605144d95e8c061b9361bcc2b036b8f63a4966 + languageName: node + linkType: hard + "vfile-message@npm:^3.0.0": version: 3.1.4 resolution: "vfile-message@npm:3.1.4"