From f360c2738b8ea9bf5d10adf02008f28975457530 Mon Sep 17 00:00:00 2001 From: Jonathan Carle Date: Tue, 24 Sep 2024 21:26:31 +0200 Subject: [PATCH] fix lint issues --- code/addons/docs/docs/props-tables.md | 2 +- code/renderers/vue3/src/docs/sourceDecorator.ts | 10 ++++------ .../component-meta/TemplateSlots.stories.ts | 3 ++- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/code/addons/docs/docs/props-tables.md b/code/addons/docs/docs/props-tables.md index 7a44a6c653ae..9e6a754b918e 100644 --- a/code/addons/docs/docs/props-tables.md +++ b/code/addons/docs/docs/props-tables.md @@ -18,7 +18,7 @@ Storybook Docs automatically generates props tables for components in supported ## Usage -For framework-specific setup instructions, see the framework's README: [React](../react/README.md), [Vue3 ](../vue3/README.md), [Angular](../angular/README.md), [Web Components](../web-components/README.md), [Ember](../ember/README.md). +For framework-specific setup instructions, see the framework's README: [React](../react/README.md), [Vue3](../vue3/README.md), [Angular](../angular/README.md), [Web Components](../web-components/README.md), [Ember](../ember/README.md). ### DocsPage diff --git a/code/renderers/vue3/src/docs/sourceDecorator.ts b/code/renderers/vue3/src/docs/sourceDecorator.ts index c6d565fc7db1..46ea4fd12bff 100644 --- a/code/renderers/vue3/src/docs/sourceDecorator.ts +++ b/code/renderers/vue3/src/docs/sourceDecorator.ts @@ -27,8 +27,8 @@ export type SourceCodeGeneratorContext = { }; /** - * Used to get the tracking data from the proxy. - * A symbol is unique, so when using it as a key it can't be accidentally accessed. + * Used to get the tracking data from the proxy. A symbol is unique, so when using it as a key it + * can't be accidentally accessed. */ const TRACKING_SYMBOL = Symbol('DEEP_ACCESS_SYMBOL'); @@ -40,9 +40,7 @@ type TrackingProxy = { const isProxy = (obj: unknown): obj is TrackingProxy => !!(obj && typeof obj === 'object' && TRACKING_SYMBOL in obj); -/** - * Decorator to generate Vue source code for stories. - */ +/** Decorator to generate Vue source code for stories. */ export const sourceDecorator: Decorator = (storyFn, ctx) => { const story = storyFn(); @@ -490,7 +488,7 @@ const generateSlotChildrenSourceCode = ( ownKeys: () => { return [`v-bind`]; }, - /** called when destructured */ + /** Called when destructured */ getOwnPropertyDescriptor: () => ({ configurable: true, enumerable: true, diff --git a/code/renderers/vue3/template/stories_vue3-vite-default-ts/component-meta/TemplateSlots.stories.ts b/code/renderers/vue3/template/stories_vue3-vite-default-ts/component-meta/TemplateSlots.stories.ts index 4a8edaf0b008..ff2237366ee4 100644 --- a/code/renderers/vue3/template/stories_vue3-vite-default-ts/component-meta/TemplateSlots.stories.ts +++ b/code/renderers/vue3/template/stories_vue3-vite-default-ts/component-meta/TemplateSlots.stories.ts @@ -1,8 +1,9 @@ import type { Meta, StoryObj } from '@storybook/vue3'; -import Component from './template-slots/component.vue'; import { h } from 'vue'; +import Component from './template-slots/component.vue'; + const meta = { component: Component, tags: ['autodocs'],