eslint-plugin-storybook
Advanced tools
Comparing version 0.6.4 to 0.6.5--canary.f4382f5.0
@@ -22,2 +22,3 @@ "use strict"; | ||
shouldHaveStoryExport: 'The file should have at least one story export', | ||
shouldHaveStoryExportWithFilters: 'The file should have at least one story export. Make sure the includeStories/excludeStories you defined are correct, otherwise Storybook will not use any stories for this file.', | ||
addStoryExport: 'Add a story export', | ||
@@ -73,5 +74,6 @@ }, | ||
// const fix = (fixer) => fixer.insertTextAfter(node, `\n\nexport const Default = {}`) | ||
const hasFilter = nonStoryExportsConfig.includeStories || nonStoryExportsConfig.excludeStories; | ||
const report = { | ||
node, | ||
messageId: 'shouldHaveStoryExport', | ||
messageId: hasFilter ? 'shouldHaveStoryExportWithFilters' : 'shouldHaveStoryExport', | ||
// fix, | ||
@@ -78,0 +80,0 @@ }; |
{ | ||
"name": "eslint-plugin-storybook", | ||
"version": "0.6.4", | ||
"version": "0.6.5--canary.f4382f5.0", | ||
"description": "Best practice rules for Storybook", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
99136
1553