New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-is-story-prefix

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-is-story-prefix - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

12

lib/rules/is-story-prefix.js

@@ -7,3 +7,11 @@ module.exports = {

type: "problem",
schema: []
schema: [{
type: "object",
properties: {
customPrefix: {
type: "string"
}
},
additionalProperties: false
}]
},

@@ -15,3 +23,3 @@ create(context) {

const fileName = fileNamePath.split("/")[fileNamePath.split("/").length - 1]
if(!fileName.startsWith("STORY_") && fileName.endsWith("stories.jsx")) {
if(!fileName.startsWith( context.options[0].customPrefix || "STORY_") && fileName.endsWith("stories.jsx")) {
context.report({

@@ -18,0 +26,0 @@ node,

2

package.json
{
"name": "eslint-plugin-is-story-prefix",
"version": "0.0.0",
"version": "0.0.1",
"description": "A eslint plugin to check if filename has a prefix",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc