Gathering detailed insights and metrics for @chanzuckerberg/eslint-plugin-stories
Gathering detailed insights and metrics for @chanzuckerberg/eslint-plugin-stories
Gathering detailed insights and metrics for @chanzuckerberg/eslint-plugin-stories
Gathering detailed insights and metrics for @chanzuckerberg/eslint-plugin-stories
Monorepo of TypeScript projects for the Chan Zuckerberg Initiative.
npm install @chanzuckerberg/eslint-plugin-stories
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (88.21%)
JavaScript (10.64%)
Shell (1.15%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
6 Stars
437 Commits
9 Watchers
4 Branches
10 Contributors
Updated on Jun 13, 2023
Latest Version
3.2.14
Package Id
@chanzuckerberg/eslint-plugin-stories@3.2.14
Unpacked Size
21.30 kB
Size
5.95 kB
File Count
24
NPM Version
lerna/6.6.1/node@v18.15.0+x64 (darwin)
Node Version
18.15.0
Published on
Apr 03, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
ESLint rules for Storybook stories.
In particular, these rules ensure that stories can be used in non-Storybook contexts. For example, for accessibility testing via axe-storybook-testing, or visual regression testing via percy-storybook.
Install @chanzuckerberg/eslint-plugin-stories with your favorite package manager. With yarn, that would look like
1yarn add --dev @chanzuckerberg/eslint-plugin-stories
Add @chanzuckerberg/stories as a plugin in your eslint configuration file.
1// .eslintrc.json 2{ 3 "plugins": ["@chanzuckerberg/stories"] 4}
Then you can either extend the recommended config to turn on all the rules
1// .eslintrc.json 2{ 3 "extends": ["plugin:@chanzuckerberg/stories/recommended"] 4}
or configure the rules individually
1// .eslintrc.json 2{ 3 "rules": { 4 "@chanzuckerberg/stories/no-ext-resources-in-stories": "warn" 5 } 6}
Name | Description | Config |
---|---|---|
csf-object-literal-or-function | Enforce that stories are either an object literal or function. | recommended |
csf-v3-types | Enforce component story format (CSF) v3 stories have explicit TypeScript types where needed for inferrence | strict |
no-csf-v2 | Use object stories (component story format v3) instead of functions. | strict |
no-ext-resources-in-stories | Prevent external resources from being loaded in stories. | recommended |
no-components-without-story | Enforce that new components are created with a corresponding story | strict |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/13 approved changesets -- score normalized to 1
Reason
project is archived
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More