Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions apps/meteor/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@
"modifiers": ["unused"],
"leadingUnderscore": "require"
},
{
"selector": "parameter",
"format": null,
"filter": {
"regex": "^Story$",
"match": true
}
},
{
"selector": ["interface"],
"format": ["PascalCase"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { mockAppRoot } from '@rocket.chat/mock-providers';
import { composeStories } from '@storybook/react';
import { render } from '@testing-library/react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { mockAppRoot } from '@rocket.chat/mock-providers';
import { composeStories } from '@storybook/react';
import { render } from '@testing-library/react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { mockAppRoot } from '@rocket.chat/mock-providers';
import { composeStories } from '@storybook/react';
import { render } from '@testing-library/react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { composeStories } from '@storybook/react';
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';
Expand Down
1 change: 0 additions & 1 deletion ee/packages/pdf-worker/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const parameters: Parameters = {
};

export const decorators: Decorator[] = [
// eslint-disable-next-line @typescript-eslint/naming-convention
(Story) => (
<div>
<style>{`
Expand Down
8 changes: 8 additions & 0 deletions packages/eslint-config/standard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ module.exports = {
format: ['camelCase', 'PascalCase'],
leadingUnderscore: 'allowSingleOrDouble',
},
{
selector: 'parameter',
format: null,
filter: {
regex: '^Story$',
match: true,
},
},
{
selector: 'parameter',
format: ['camelCase'],
Expand Down
4 changes: 2 additions & 2 deletions packages/gazzodown/src/Markup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import colors from '@rocket.chat/fuselage-tokens/colors.json';
import { Options, parse } from '@rocket.chat/message-parser';
import type { Meta, StoryFn } from '@storybook/react';
import outdent from 'outdent';
import { ReactElement, Suspense } from 'react';
import { Suspense } from 'react';

import Markup from './Markup';
import { MarkupInteractionContext } from './MarkupInteractionContext';
Expand All @@ -13,7 +13,7 @@ export default {
title: 'Markup',
component: Markup,
decorators: [
(Story): ReactElement => (
(Story) => (
<Suspense fallback={null}>
<MarkupInteractionContext.Provider value={{ enableTimestamp: true }}>
<MessageContainer>
Expand Down
1 change: 0 additions & 1 deletion packages/storybook-config/src/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { PaletteStyleTag } from '@rocket.chat/fuselage';
import surface from '@rocket.chat/fuselage-tokens/dist/surface.json';
import type { Parameters, Decorator } from '@storybook/react';
Expand Down
3 changes: 1 addition & 2 deletions packages/ui-composer/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Decorator, Parameters } from '@storybook/react';
import '../../../apps/meteor/app/theme/client/main.css';
import 'highlight.js/styles/github.css';
import { ReactElement } from 'react';

export const parameters: Parameters = {
controls: {
Expand All @@ -13,7 +12,7 @@ export const parameters: Parameters = {
};

export const decorators: Decorator[] = [
(Story): ReactElement => (
(Story) => (
<div>
<style>{`
body {
Expand Down
3 changes: 1 addition & 2 deletions packages/ui-video-conf/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Decorator } from '@storybook/react';
import type { ReactElement } from 'react';

import '../../../apps/meteor/app/theme/client/main.css';
import 'highlight.js/styles/github.css';
Expand All @@ -15,7 +14,7 @@ export const parameters = {
};

export const decorators: Decorator[] = [
(Story): ReactElement => (
(Story) => (
<div>
<style>{`
body {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { MessageDivider, Message, Avatar, Box } from '@rocket.chat/fuselage';
import type { Meta, StoryFn } from '@storybook/react';
import type { ReactElement } from 'react';

import { VideoConfMessage, VideoConfMessageIcon, VideoConfMessageRow, VideoConfMessageText } from '.';
import VideoConfMessageAction from './VideoConfMessageAction';
Expand All @@ -16,7 +15,7 @@ export default {
title: 'Components/VideoConfMessage',
component: VideoConfMessage,
decorators: [
(Story): ReactElement => (
(Story) => (
<Box>
<MessageDivider>May, 24, 2020</MessageDivider>
<Message className='customclass'>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Avatar, Icon } from '@rocket.chat/fuselage';
import { action } from '@storybook/addon-actions';
import type { Meta, StoryFn } from '@storybook/react';
import type { ReactElement } from 'react';

import VideoConfButton from '../VideoConfButton';
import VideoConfController from '../VideoConfController';
Expand All @@ -19,7 +18,7 @@ export default {
title: 'Components/VideoConfPopup',
component: VideoConfPopup,
decorators: [
(Story): ReactElement => (
(Story) => (
<VideoConfPopupBackdrop>
<Story />
</VideoConfPopupBackdrop>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import type { Meta, StoryFn } from '@storybook/react';
import type { ReactElement } from 'react';

import VoipActionButton from './VoipActionButton';

export default {
title: 'Components/VoipActionButton',
component: VoipActionButton,
decorators: [(Story): ReactElement => <Story />],
} satisfies Meta<typeof VoipActionButton>;

export const SuccessButton: StoryFn<typeof VoipActionButton> = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Meta, StoryFn } from '@storybook/react';
import type { ReactElement } from 'react';

import VoipActions from './VoipActions';

Expand All @@ -8,7 +7,6 @@ const noop = () => undefined;
export default {
title: 'Components/VoipActions',
component: VoipActions,
decorators: [(Story): ReactElement => <Story />],
} satisfies Meta<typeof VoipActions>;

export const IncomingActions: StoryFn<typeof VoipActions> = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { Box } from '@rocket.chat/fuselage';
import type { Meta, StoryFn } from '@storybook/react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import type { ReactElement } from 'react';

import VoipContactId from './VoipContactId';

export default {
title: 'Components/VoipContactId',
component: VoipContactId,
decorators: [
(Story): ReactElement => (
(Story) => (
<QueryClientProvider client={new QueryClient()}>
<Box maxWidth={200}>
<Story />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { Box } from '@rocket.chat/fuselage';
import type { Meta, StoryFn } from '@storybook/react';
import type { ReactElement } from 'react';

import VoipDialPad from './VoipDialPad';

export default {
title: 'Components/VoipDialPad',
component: VoipDialPad,
decorators: [
(Story): ReactElement => (
(Story) => (
<Box maxWidth={248}>
<Story />
</Box>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Meta, StoryFn } from '@storybook/react';
import type { ReactElement } from 'react';

import VoipPopup from './VoipPopup';
import { createMockVoipProviders } from '../../tests/mocks';
Expand All @@ -10,7 +9,7 @@ export default {
title: 'Components/VoipPopup',
component: VoipPopup,
decorators: [
(Story): ReactElement => (
(Story) => (
<MockedProviders>
<Story />
</MockedProviders>
Expand Down
Loading