From 2ce834ef391b806421491de9d1ec316db10cf569 Mon Sep 17 00:00:00 2001 From: igor Date: Thu, 4 Jan 2018 10:33:16 +0200 Subject: [PATCH] Remove @angular/core dep from peer and suppress extraneous-dependencies error --- addons/knobs/package.json | 1 - addons/knobs/src/angular/helpers.js | 2 +- addons/knobs/src/angular/utils.js | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/knobs/package.json b/addons/knobs/package.json index 542a155f900..af2d5f23343 100644 --- a/addons/knobs/package.json +++ b/addons/knobs/package.json @@ -33,7 +33,6 @@ "vue": "^2.5.13" }, "peerDependencies": { - "@angular/core": ">=4.0.0", "@storybook/addons": "^3.3.0", "react": "*", "react-dom": "*" diff --git a/addons/knobs/src/angular/helpers.js b/addons/knobs/src/angular/helpers.js index f342d210b39..840525176c5 100644 --- a/addons/knobs/src/angular/helpers.js +++ b/addons/knobs/src/angular/helpers.js @@ -1,5 +1,5 @@ /* eslint no-underscore-dangle: 0 */ - +// eslint-disable-next-line import/no-extraneous-dependencies import { Component, SimpleChange, ChangeDetectorRef } from '@angular/core'; import { getParameters, getAnnotations, getPropMetadata } from './utils'; diff --git a/addons/knobs/src/angular/utils.js b/addons/knobs/src/angular/utils.js index 0d463b4ce0f..6f308ac964b 100644 --- a/addons/knobs/src/angular/utils.js +++ b/addons/knobs/src/angular/utils.js @@ -1,5 +1,6 @@ -/* eslint-disable no-param-reassign */ /* globals window */ +/* eslint-disable no-param-reassign */ +// eslint-disable-next-line import/no-extraneous-dependencies import { ɵReflectionCapabilities } from '@angular/core'; // eslint-disable-next-line new-cap