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
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const meta: Meta<typeof DsCard.Root> = {
onFocus: { table: { disable: true } },
onBlur: { table: { disable: true } },
},
args: {},
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const meta = {
title: 'Design System/Grid',
component: DsGrid,
subcomponents: { DsGridItem },
parameters: {},
argTypes: {
children: {
control: 'text',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ export default meta;
type Story = StoryObj<typeof DsSpinner>;

// eslint-disable-next-line @drivenets/ds-internal/no-empty-story
export const Default: Story = {
args: {},
};
export const Default: Story = {};

export const AllSizes: Story = {
render: () => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,4 @@ export const ColumnHiding: Story = {
</div>
);
},
args: {},
};
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export const AdvancedSearch: Story = {
</div>
);
},
args: {},
};

export const TabFilters: Story = {
Expand Down Expand Up @@ -148,5 +147,4 @@ export const TabFilters: Story = {
</div>
);
},
args: {},
};
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,6 @@ To add a new filter, just add one adapter to \`workflowFilters\` array. No other
</div>
);
},
args: {},
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);

Expand Down Expand Up @@ -868,7 +867,6 @@ The debug panel below shows the current filter state as JSON.
</div>
);
},
args: {},
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default meta;
type Story = StoryObj<typeof SampleForm>;

export const Default: Story = {
args: {},
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);

Expand Down
1 change: 1 addition & 0 deletions packages/eslint-plugin-internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
},
"peerDependencies": {
"eslint": "^9.0.0 || ^10.0.0",
"storybook": "^10.0.0",
"typescript": "^5.0.0"
}
}
6 changes: 6 additions & 0 deletions packages/eslint-plugin-internal/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { consistentStoryTitles } from './rules/consistent-story-titles';
import { noAutodocsTag } from './rules/no-autodocs-tag';
import { noCrossComponentInternalImport } from './rules/no-cross-component-internal-import';
import { noEmptyStory } from './rules/no-empty-story';
import { noUselessStoryAnnotations } from './rules/no-useless-story-annotations';
import { noUselessTsxExtension } from './rules/no-useless-tsx-extension';
import { noVitestBrowserReact } from './rules/no-vitest-browser-react';
import { noVitestInStories } from './rules/no-vitest-in-stories';
Expand All @@ -23,6 +24,7 @@ const plugin = {
'no-autodocs-tag': noAutodocsTag,
'no-cross-component-internal-import': noCrossComponentInternalImport,
'no-empty-story': noEmptyStory,
'no-useless-story-annotations': noUselessStoryAnnotations,
'no-useless-tsx-extension': noUselessTsxExtension,
'no-vitest-browser-react': noVitestBrowserReact,
'no-vitest-in-stories': noVitestInStories,
Expand Down Expand Up @@ -59,6 +61,10 @@ Object.assign(plugin.configs, {
'@drivenets/ds-internal/consistent-story-titles': 'error',
'@drivenets/ds-internal/no-autodocs-tag': 'error',
'@drivenets/ds-internal/no-empty-story': 'error',

'@drivenets/ds-internal/no-useless-story-annotations': 'error',
'storybook/no-redundant-story-name': 'off', // turn off conflicting rule

'@drivenets/ds-internal/no-vitest-in-stories': 'error',
'@drivenets/ds-internal/require-story-params': 'error',
},
Expand Down
Loading
Loading