Socket
Socket
Sign inDemoInstall

eslint-plugin-storybook

Package Overview
Dependencies
128
Maintainers
2
Versions
89
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.11 to 0.6.12

18

CHANGELOG.md

@@ -0,1 +1,19 @@

# v0.6.12 (Wed May 03 2023)
#### 🐛 Bug Fix
- feat: allow ignore option in no-uninstalled-addons [#129](https://github.com/storybookjs/eslint-plugin-storybook/pull/129) ([@mandarini](https://github.com/mandarini) [@yannbf](https://github.com/yannbf))
#### 📝 Documentation
- docs: add async [#121](https://github.com/storybookjs/eslint-plugin-storybook/pull/121) ([@tyankatsu0105](https://github.com/tyankatsu0105))
#### Authors: 3
- Katerina Skroumpelou ([@mandarini](https://github.com/mandarini))
- tyankatsu ([@tyankatsu0105](https://github.com/tyankatsu0105))
- Yann Braga ([@yannbf](https://github.com/yannbf))
---
# v0.6.11 (Tue Feb 21 2023)

@@ -2,0 +20,0 @@

26

dist/rules/no-uninstalled-addons.js

@@ -17,3 +17,8 @@ "use strict";

name: 'no-uninstalled-addons',
defaultOptions: [],
defaultOptions: [
{
packageJsonLocation: '',
ignore: [],
},
],
meta: {

@@ -36,11 +41,20 @@ type: 'problem',

},
ignore: {
type: 'array',
items: {
type: 'string',
},
},
},
},
], // Add a schema if the rule has options. Otherwise remove this
],
},
create(context) {
// variables should be defined here
const packageJsonLocation = context.options.reduce((acc, val) => {
return val['packageJsonLocation'] || acc;
}, '');
const { packageJsonLocation, ignore } = context.options.reduce((acc, val) => {
return {
packageJsonLocation: val['packageJsonLocation'] || acc.packageJsonLocation,
ignore: val['ignore'] || acc.ignore,
};
}, { packageJsonLocation: '', ignore: [] });
//----------------------------------------------------------------------

@@ -78,3 +92,3 @@ // Helpers

.filter(filterLocalAddons)
.filter((addon) => !isAddonInstalled(addon, installedSbAddons))
.filter((addon) => !isAddonInstalled(addon, installedSbAddons) && !ignore.includes(addon))
.map((addon) => ({ name: addon }));

@@ -81,0 +95,0 @@ return result.length ? result : false;

{
"name": "eslint-plugin-storybook",
"version": "0.6.11",
"version": "0.6.12",
"description": "Best practice rules for Storybook",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc