Socket
Socket
Sign inDemoInstall

eslint-plugin-storybook

Package Overview
Dependencies
4
Maintainers
2
Versions
92
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.4 to 0.6.5--canary.f4382f5.0

4

dist/rules/story-exports.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc