From be43f84725b02a82bc0efbeb6b9931f19d8dab14 Mon Sep 17 00:00:00 2001 From: Leroy Korterink Date: Thu, 7 Nov 2024 17:11:45 +0100 Subject: [PATCH] Allow literals in story files --- src/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/index.js b/src/index.js index 698148f..d3e4714 100644 --- a/src/index.js +++ b/src/index.js @@ -59,6 +59,13 @@ const react = [ ...config, name: `@mediamonks/eslint-config / eslint-plugin-storybook / ${config.name}`, })), + { + files: ['**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)', '**/*.story.@(ts|tsx|js|jsx|mjs|cjs)'], + rules: { + 'react/jsx-no-literals': 'off', + }, + name: `@mediamonks/eslint-config / react storybook overrides`, + }, { ...reactRecommended, files: ['**/*.jsx', '**/*.tsx'],