recommended.js 1002 B

123456789101112131415161718192021222324252627
  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/await-interactions': 'error',
  10. 'storybook/context-in-play-function': 'error',
  11. 'storybook/default-exports': 'error',
  12. 'storybook/hierarchy-separator': 'warn',
  13. 'storybook/no-redundant-story-name': 'warn',
  14. 'storybook/prefer-pascal-case': 'warn',
  15. 'storybook/story-exports': 'error',
  16. 'storybook/use-storybook-expect': 'error',
  17. 'storybook/use-storybook-testing-library': 'error',
  18. },
  19. },
  20. {
  21. files: ['.storybook/main.@(js|cjs|mjs|ts)'],
  22. rules: {
  23. 'storybook/no-uninstalled-addons': 'error',
  24. },
  25. },
  26. ],
  27. };