eslint-plugin-storybook
Version:
Storybook ESLint Plugin: Best practice rules for writing stories
47 lines (45 loc) • 1.59 kB
TypeScript
declare const _default: ({
name: string;
plugins: {
readonly storybook: any;
};
files?: undefined;
rules?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/csf-component': "warn";
readonly 'storybook/default-exports': "error";
readonly 'storybook/hierarchy-separator': "warn";
readonly 'storybook/no-redundant-story-name': "warn";
readonly 'storybook/story-exports': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
plugins?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/csf-component'?: undefined;
readonly 'storybook/default-exports'?: undefined;
readonly 'storybook/hierarchy-separator'?: undefined;
readonly 'storybook/no-redundant-story-name'?: undefined;
readonly 'storybook/story-exports'?: undefined;
};
plugins?: undefined;
} | {
name: string;
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/no-stories-of': "error";
readonly 'storybook/no-title-property-in-meta': "error";
};
})[];
export { _default as default };