csf.js 750 B

1234567891011121314151617181920212223
  1. "use strict";
  2. module.exports = {
  3. plugins: ['storybook'],
  4. overrides: [
  5. {
  6. files: ['*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '*.story.@(ts|tsx|js|jsx|mjs|cjs)'],
  7. rules: {
  8. 'import/no-anonymous-default-export': 'off',
  9. 'storybook/csf-component': 'warn',
  10. 'storybook/default-exports': 'error',
  11. 'storybook/hierarchy-separator': 'warn',
  12. 'storybook/no-redundant-story-name': 'warn',
  13. 'storybook/story-exports': 'error',
  14. },
  15. },
  16. {
  17. files: ['.storybook/main.@(js|cjs|mjs|ts)'],
  18. rules: {
  19. 'storybook/no-uninstalled-addons': 'error',
  20. },
  21. },
  22. ],
  23. };