addon-interactions.js 722 B

12345678910111213141516171819202122
  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/use-storybook-expect': 'error',
  12. 'storybook/use-storybook-testing-library': 'error',
  13. },
  14. },
  15. {
  16. files: ['.storybook/main.@(js|cjs|mjs|ts)'],
  17. rules: {
  18. 'storybook/no-uninstalled-addons': 'error',
  19. },
  20. },
  21. ],
  22. };