From 7423d790c93070b363ab1d77f04b4bad9da23fb6 Mon Sep 17 00:00:00 2001 From: Kalin Chernev Date: Wed, 6 May 2020 16:44:38 +0200 Subject: [PATCH] chore(eslint): fix linting rules - noissue (#453) --- .eslintrc.js | 13 +++---------- .../ec-component-accordion/accordion.story.js | 1 - .../ec-component-accordion/accordion.test.js | 1 - .../ec-component-accordion2/accordion2.story.js | 1 - .../ec-component-accordion2/accordion2.test.js | 1 - .../ec-component-blockquote/blockquote.story.js | 1 - .../breadcrumb-core.story.js | 1 - .../breadcrumb-harmonised.story.js | 1 - .../breadcrumb-standardised.story.js | 1 - src/ec/packages/ec-component-button/button.story.js | 1 - src/ec/packages/ec-component-card/card.story.js | 1 - .../ec-component-checkbox/checkbox.story.js | 1 - .../contextual-navigation.story.js | 1 - .../ec-component-date-block/date-block.story.js | 2 +- .../ec-component-date-block/date-block.test.js | 1 - .../ec-component-datepicker/datepicker.story.js | 1 - .../ec-component-datepicker/datepicker.test.js | 1 - .../description-list.story.js | 1 - .../ec-component-expandable/expandable.story.js | 1 - .../ec-component-fact-figures/fact-figures.story.js | 2 +- .../ec-component-file-upload/file-upload.story.js | 1 - src/ec/packages/ec-component-file/file.story.js | 1 - .../ec-component-footer-core/footer-core.story.js | 2 +- .../footer-harmonised.story.js | 2 +- .../footer-standardised.story.js | 2 +- .../packages/ec-component-gallery/gallery.story.js | 1 - .../ec-component-hero-banner/hero-banner.story.js | 1 - .../inpage-navigation.story.js | 1 - .../inpage-navigation.test.js | 1 - .../language-list.story.js | 1 - src/ec/packages/ec-component-link/link.story.js | 1 - .../media-container.story.js | 1 - .../ec-component-menu-legacy/menu-legacy.test.js | 1 - src/ec/packages/ec-component-menu/menu.story.js | 1 - .../packages/ec-component-message/message.story.js | 1 - .../ec-component-ordered-list/ordered-list.story.js | 1 - .../ec-component-page-banner/page-banner.story.js | 1 - .../page-header-core.story.js | 1 - .../page-header-harmonised.story.js | 1 - .../page-header-standardised.story.js | 1 - src/ec/packages/ec-component-page-header/adapter.js | 1 - .../ec-component-page-header/page-header.story.js | 1 - .../ec-component-pagination/pagination.story.js | 1 - src/ec/packages/ec-component-radio/radio.story.js | 1 - .../ec-component-search-form/search-form.story.js | 1 - src/ec/packages/ec-component-select/select.story.js | 1 - .../site-header-core.story.js | 1 - .../site-header-harmonised.story.js | 1 - .../site-header-standardised.story.js | 1 - .../ec-component-site-header/site-header.story.js | 1 - .../ec-component-skip-link/skip-link.story.js | 1 - .../social-media-follow.story.js | 1 - .../social-media-share.story.js | 1 - src/ec/packages/ec-component-table/table.story.js | 1 - src/ec/packages/ec-component-tag/tag.story.js | 1 - .../ec-component-text-area/text-area.story.js | 1 - .../ec-component-text-input/text-input.story.js | 1 - .../ec-component-timeline/timeline.story.js | 2 +- .../packages/ec-component-timeline/timeline.test.js | 1 - .../unordered-list.story.js | 1 - 60 files changed, 9 insertions(+), 69 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index e91accc5a..a327b1fff 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,34 +16,27 @@ module.exports = { rules: { 'unicorn/prevent-abbreviations': 0, 'unicorn/prefer-node-append': 0, + 'import/no-extraneous-dependencies': 0, }, overrides: [ { files: '**/demo/*.js', rules: { 'unicorn/filename-case': 'off', - 'import/no-extraneous-dependencies': 0, }, }, { - files: ['src/**/*.{story,test}.js'], + files: ['src/**/*.{story,test}.js', 'src/**/packages/**/adapter.js'], rules: { - 'import/no-extraneous-dependencies': 0, + 'no-param-reassign': 0, }, }, { files: ['php/**/*.story.js'], rules: { - 'import/no-extraneous-dependencies': 0, camelcase: 0, 'import/order': 0, }, }, - { - files: ['utils/**/*.{js,jsx}'], - rules: { - 'import/no-extraneous-dependencies': 0, - }, - }, ], }; diff --git a/src/ec/packages/ec-component-accordion/accordion.story.js b/src/ec/packages/ec-component-accordion/accordion.story.js index a91f0b5d7..fa0e8b45b 100644 --- a/src/ec/packages/ec-component-accordion/accordion.story.js +++ b/src/ec/packages/ec-component-accordion/accordion.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-accordion/accordion.test.js b/src/ec/packages/ec-component-accordion/accordion.test.js index edffaae74..c1c24f391 100644 --- a/src/ec/packages/ec-component-accordion/accordion.test.js +++ b/src/ec/packages/ec-component-accordion/accordion.test.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { merge, renderTwigFileAsNode } from '@ecl-twig/test-utils'; import demoData from './demo/data'; diff --git a/src/ec/packages/ec-component-accordion2/accordion2.story.js b/src/ec/packages/ec-component-accordion2/accordion2.story.js index 07864d147..628e3d570 100644 --- a/src/ec/packages/ec-component-accordion2/accordion2.story.js +++ b/src/ec/packages/ec-component-accordion2/accordion2.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-accordion2/accordion2.test.js b/src/ec/packages/ec-component-accordion2/accordion2.test.js index ae92e61a2..174227603 100644 --- a/src/ec/packages/ec-component-accordion2/accordion2.test.js +++ b/src/ec/packages/ec-component-accordion2/accordion2.test.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { merge, renderTwigFileAsNode } from '@ecl-twig/test-utils'; import demoData from './demo/data'; diff --git a/src/ec/packages/ec-component-blockquote/blockquote.story.js b/src/ec/packages/ec-component-blockquote/blockquote.story.js index 0499e9a6d..71c0c66df 100644 --- a/src/ec/packages/ec-component-blockquote/blockquote.story.js +++ b/src/ec/packages/ec-component-blockquote/blockquote.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign, no-shadow */ import { storiesOf } from '@storybook/html'; import { withKnobs, text } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-breadcrumb-core/breadcrumb-core.story.js b/src/ec/packages/ec-component-breadcrumb-core/breadcrumb-core.story.js index 0fb5aa61b..09749ee18 100644 --- a/src/ec/packages/ec-component-breadcrumb-core/breadcrumb-core.story.js +++ b/src/ec/packages/ec-component-breadcrumb-core/breadcrumb-core.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import { withKnobs, text, select } from '@storybook/addon-knobs'; diff --git a/src/ec/packages/ec-component-breadcrumb-harmonised/breadcrumb-harmonised.story.js b/src/ec/packages/ec-component-breadcrumb-harmonised/breadcrumb-harmonised.story.js index b18cb8874..280e48722 100644 --- a/src/ec/packages/ec-component-breadcrumb-harmonised/breadcrumb-harmonised.story.js +++ b/src/ec/packages/ec-component-breadcrumb-harmonised/breadcrumb-harmonised.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import withCode from '@ecl-twig/storybook-addon-code'; diff --git a/src/ec/packages/ec-component-breadcrumb-standardised/breadcrumb-standardised.story.js b/src/ec/packages/ec-component-breadcrumb-standardised/breadcrumb-standardised.story.js index 24ea3e7f9..69aa74245 100644 --- a/src/ec/packages/ec-component-breadcrumb-standardised/breadcrumb-standardised.story.js +++ b/src/ec/packages/ec-component-breadcrumb-standardised/breadcrumb-standardised.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import withCode from '@ecl-twig/storybook-addon-code'; diff --git a/src/ec/packages/ec-component-button/button.story.js b/src/ec/packages/ec-component-button/button.story.js index f1558ed66..3151d9d9b 100644 --- a/src/ec/packages/ec-component-button/button.story.js +++ b/src/ec/packages/ec-component-button/button.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select, boolean } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-card/card.story.js b/src/ec/packages/ec-component-card/card.story.js index e75d719e4..4a594f857 100644 --- a/src/ec/packages/ec-component-card/card.story.js +++ b/src/ec/packages/ec-component-card/card.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import { withKnobs, text, array, button } from '@storybook/addon-knobs'; diff --git a/src/ec/packages/ec-component-checkbox/checkbox.story.js b/src/ec/packages/ec-component-checkbox/checkbox.story.js index 589edfd4a..0951d1e4d 100644 --- a/src/ec/packages/ec-component-checkbox/checkbox.story.js +++ b/src/ec/packages/ec-component-checkbox/checkbox.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-contextual-navigation/contextual-navigation.story.js b/src/ec/packages/ec-component-contextual-navigation/contextual-navigation.story.js index 4e9acaea3..ea6428f23 100644 --- a/src/ec/packages/ec-component-contextual-navigation/contextual-navigation.story.js +++ b/src/ec/packages/ec-component-contextual-navigation/contextual-navigation.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, number } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-date-block/date-block.story.js b/src/ec/packages/ec-component-date-block/date-block.story.js index dc1c699bd..46a925598 100644 --- a/src/ec/packages/ec-component-date-block/date-block.story.js +++ b/src/ec/packages/ec-component-date-block/date-block.story.js @@ -1,4 +1,4 @@ -/* eslint-disable no-param-reassign, no-shadow */ +/* eslint-disable no-shadow */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-date-block/date-block.test.js b/src/ec/packages/ec-component-date-block/date-block.test.js index 16fbe216c..b1095dd6e 100644 --- a/src/ec/packages/ec-component-date-block/date-block.test.js +++ b/src/ec/packages/ec-component-date-block/date-block.test.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { merge, renderTwigFileAsNode } from '@ecl-twig/test-utils'; import demoData from './demo/data'; diff --git a/src/ec/packages/ec-component-datepicker/datepicker.story.js b/src/ec/packages/ec-component-datepicker/datepicker.story.js index a571cb734..1bd6e897c 100644 --- a/src/ec/packages/ec-component-datepicker/datepicker.story.js +++ b/src/ec/packages/ec-component-datepicker/datepicker.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import { withKnobs, text, select } from '@storybook/addon-knobs'; diff --git a/src/ec/packages/ec-component-datepicker/datepicker.test.js b/src/ec/packages/ec-component-datepicker/datepicker.test.js index 69360a18e..85743ac56 100644 --- a/src/ec/packages/ec-component-datepicker/datepicker.test.js +++ b/src/ec/packages/ec-component-datepicker/datepicker.test.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { merge, renderTwigFileAsNode } from '@ecl-twig/test-utils'; import demoData from './demo/data'; diff --git a/src/ec/packages/ec-component-description-list/description-list.story.js b/src/ec/packages/ec-component-description-list/description-list.story.js index 1814e0ba4..c82bbb7d6 100644 --- a/src/ec/packages/ec-component-description-list/description-list.story.js +++ b/src/ec/packages/ec-component-description-list/description-list.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import { withKnobs, select, text } from '@storybook/addon-knobs'; diff --git a/src/ec/packages/ec-component-expandable/expandable.story.js b/src/ec/packages/ec-component-expandable/expandable.story.js index eb96a6cc4..9a7cfe200 100644 --- a/src/ec/packages/ec-component-expandable/expandable.story.js +++ b/src/ec/packages/ec-component-expandable/expandable.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-fact-figures/fact-figures.story.js b/src/ec/packages/ec-component-fact-figures/fact-figures.story.js index c9da08bed..62bf7a722 100644 --- a/src/ec/packages/ec-component-fact-figures/fact-figures.story.js +++ b/src/ec/packages/ec-component-fact-figures/fact-figures.story.js @@ -1,4 +1,4 @@ -/* eslint-disable no-param-reassign, camelcase */ +/* eslint-disable camelcase */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import { withKnobs, boolean, text, button } from '@storybook/addon-knobs'; diff --git a/src/ec/packages/ec-component-file-upload/file-upload.story.js b/src/ec/packages/ec-component-file-upload/file-upload.story.js index 2095ddfea..65ff96cab 100644 --- a/src/ec/packages/ec-component-file-upload/file-upload.story.js +++ b/src/ec/packages/ec-component-file-upload/file-upload.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select, boolean } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-file/file.story.js b/src/ec/packages/ec-component-file/file.story.js index 92df9238a..37c69ae47 100644 --- a/src/ec/packages/ec-component-file/file.story.js +++ b/src/ec/packages/ec-component-file/file.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-footer-core/footer-core.story.js b/src/ec/packages/ec-component-footer-core/footer-core.story.js index bc48945b9..0f70759c2 100644 --- a/src/ec/packages/ec-component-footer-core/footer-core.story.js +++ b/src/ec/packages/ec-component-footer-core/footer-core.story.js @@ -1,4 +1,4 @@ -/* eslint-disable no-param-reassign, no-shadow */ +/* eslint-disable no-shadow */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import withCode from '@ecl-twig/storybook-addon-code'; diff --git a/src/ec/packages/ec-component-footer-harmonised/footer-harmonised.story.js b/src/ec/packages/ec-component-footer-harmonised/footer-harmonised.story.js index 73d03a0c3..77dd78f02 100644 --- a/src/ec/packages/ec-component-footer-harmonised/footer-harmonised.story.js +++ b/src/ec/packages/ec-component-footer-harmonised/footer-harmonised.story.js @@ -1,4 +1,4 @@ -/* eslint-disable no-param-reassign, no-shadow */ +/* eslint-disable no-shadow */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import { withKnobs, button, text } from '@storybook/addon-knobs'; diff --git a/src/ec/packages/ec-component-footer-standardised/footer-standardised.story.js b/src/ec/packages/ec-component-footer-standardised/footer-standardised.story.js index 529978319..0660accf5 100644 --- a/src/ec/packages/ec-component-footer-standardised/footer-standardised.story.js +++ b/src/ec/packages/ec-component-footer-standardised/footer-standardised.story.js @@ -1,4 +1,4 @@ -/* eslint-disable no-param-reassign, no-shadow */ +/* eslint-disable no-shadow */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import withCode from '@ecl-twig/storybook-addon-code'; diff --git a/src/ec/packages/ec-component-gallery/gallery.story.js b/src/ec/packages/ec-component-gallery/gallery.story.js index 0c22cc73e..a54a8c795 100644 --- a/src/ec/packages/ec-component-gallery/gallery.story.js +++ b/src/ec/packages/ec-component-gallery/gallery.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-hero-banner/hero-banner.story.js b/src/ec/packages/ec-component-hero-banner/hero-banner.story.js index 27f7eb9dd..0d505b3e4 100644 --- a/src/ec/packages/ec-component-hero-banner/hero-banner.story.js +++ b/src/ec/packages/ec-component-hero-banner/hero-banner.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, boolean, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-inpage-navigation/inpage-navigation.story.js b/src/ec/packages/ec-component-inpage-navigation/inpage-navigation.story.js index cf4815810..4938e966f 100644 --- a/src/ec/packages/ec-component-inpage-navigation/inpage-navigation.story.js +++ b/src/ec/packages/ec-component-inpage-navigation/inpage-navigation.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, button } from '@storybook/addon-knobs'; import { loremIpsum } from 'lorem-ipsum'; diff --git a/src/ec/packages/ec-component-inpage-navigation/inpage-navigation.test.js b/src/ec/packages/ec-component-inpage-navigation/inpage-navigation.test.js index a81fa41cb..1c1781504 100644 --- a/src/ec/packages/ec-component-inpage-navigation/inpage-navigation.test.js +++ b/src/ec/packages/ec-component-inpage-navigation/inpage-navigation.test.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { merge, renderTwigFileAsNode } from '@ecl-twig/test-utils'; import demoData from './demo/data'; diff --git a/src/ec/packages/ec-component-language-list/language-list.story.js b/src/ec/packages/ec-component-language-list/language-list.story.js index ebfcef156..f82d98eeb 100644 --- a/src/ec/packages/ec-component-language-list/language-list.story.js +++ b/src/ec/packages/ec-component-language-list/language-list.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-link/link.story.js b/src/ec/packages/ec-component-link/link.story.js index a6cddb025..4cf66a9c8 100644 --- a/src/ec/packages/ec-component-link/link.story.js +++ b/src/ec/packages/ec-component-link/link.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-media-container/media-container.story.js b/src/ec/packages/ec-component-media-container/media-container.story.js index c063e0644..45a1d9ff0 100644 --- a/src/ec/packages/ec-component-media-container/media-container.story.js +++ b/src/ec/packages/ec-component-media-container/media-container.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import he from 'he'; import { storiesOf } from '@storybook/html'; import { withKnobs, text, select, object } from '@storybook/addon-knobs'; diff --git a/src/ec/packages/ec-component-menu-legacy/menu-legacy.test.js b/src/ec/packages/ec-component-menu-legacy/menu-legacy.test.js index f0a3d9108..4353c769f 100644 --- a/src/ec/packages/ec-component-menu-legacy/menu-legacy.test.js +++ b/src/ec/packages/ec-component-menu-legacy/menu-legacy.test.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { merge, renderTwigFileAsNode } from '@ecl-twig/test-utils'; import defaultDataStructure from './demo/data'; diff --git a/src/ec/packages/ec-component-menu/menu.story.js b/src/ec/packages/ec-component-menu/menu.story.js index 240398fce..880ca8a94 100644 --- a/src/ec/packages/ec-component-menu/menu.story.js +++ b/src/ec/packages/ec-component-menu/menu.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, select, text, object } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-message/message.story.js b/src/ec/packages/ec-component-message/message.story.js index d1fc19ee3..8c04930c5 100644 --- a/src/ec/packages/ec-component-message/message.story.js +++ b/src/ec/packages/ec-component-message/message.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-ordered-list/ordered-list.story.js b/src/ec/packages/ec-component-ordered-list/ordered-list.story.js index 3d45ed341..8bc8286ef 100644 --- a/src/ec/packages/ec-component-ordered-list/ordered-list.story.js +++ b/src/ec/packages/ec-component-ordered-list/ordered-list.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import { withKnobs, text } from '@storybook/addon-knobs'; diff --git a/src/ec/packages/ec-component-page-banner/page-banner.story.js b/src/ec/packages/ec-component-page-banner/page-banner.story.js index 4f05ba13e..ec2303b31 100644 --- a/src/ec/packages/ec-component-page-banner/page-banner.story.js +++ b/src/ec/packages/ec-component-page-banner/page-banner.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import { withKnobs, text, boolean, select } from '@storybook/addon-knobs'; diff --git a/src/ec/packages/ec-component-page-header-core/page-header-core.story.js b/src/ec/packages/ec-component-page-header-core/page-header-core.story.js index 1a23a5b95..cc701dc0e 100644 --- a/src/ec/packages/ec-component-page-header-core/page-header-core.story.js +++ b/src/ec/packages/ec-component-page-header-core/page-header-core.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, object } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-page-header-harmonised/page-header-harmonised.story.js b/src/ec/packages/ec-component-page-header-harmonised/page-header-harmonised.story.js index a2b875659..91b3d3ea4 100644 --- a/src/ec/packages/ec-component-page-header-harmonised/page-header-harmonised.story.js +++ b/src/ec/packages/ec-component-page-header-harmonised/page-header-harmonised.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, object } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-page-header-standardised/page-header-standardised.story.js b/src/ec/packages/ec-component-page-header-standardised/page-header-standardised.story.js index f626afad6..7a7754eae 100644 --- a/src/ec/packages/ec-component-page-header-standardised/page-header-standardised.story.js +++ b/src/ec/packages/ec-component-page-header-standardised/page-header-standardised.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, object } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-page-header/adapter.js b/src/ec/packages/ec-component-page-header/adapter.js index 542d9e50e..210cac974 100644 --- a/src/ec/packages/ec-component-page-header/adapter.js +++ b/src/ec/packages/ec-component-page-header/adapter.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import breadcrumbDataSimple from '../ec-component-breadcrumb/demo/data--simple'; function formatPageHeaderInfo(i) { diff --git a/src/ec/packages/ec-component-page-header/page-header.story.js b/src/ec/packages/ec-component-page-header/page-header.story.js index 7e518284e..fdabbc4d1 100644 --- a/src/ec/packages/ec-component-page-header/page-header.story.js +++ b/src/ec/packages/ec-component-page-header/page-header.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, diff --git a/src/ec/packages/ec-component-pagination/pagination.story.js b/src/ec/packages/ec-component-pagination/pagination.story.js index 4b21a7566..3ff5f78c1 100644 --- a/src/ec/packages/ec-component-pagination/pagination.story.js +++ b/src/ec/packages/ec-component-pagination/pagination.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-radio/radio.story.js b/src/ec/packages/ec-component-radio/radio.story.js index 8ac60768e..110f5800a 100644 --- a/src/ec/packages/ec-component-radio/radio.story.js +++ b/src/ec/packages/ec-component-radio/radio.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, boolean } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-search-form/search-form.story.js b/src/ec/packages/ec-component-search-form/search-form.story.js index c81d48055..42c54cccc 100644 --- a/src/ec/packages/ec-component-search-form/search-form.story.js +++ b/src/ec/packages/ec-component-search-form/search-form.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-select/select.story.js b/src/ec/packages/ec-component-select/select.story.js index 6b280f386..1b7f34c6f 100644 --- a/src/ec/packages/ec-component-select/select.story.js +++ b/src/ec/packages/ec-component-select/select.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-site-header-core/site-header-core.story.js b/src/ec/packages/ec-component-site-header-core/site-header-core.story.js index 5be34019f..d175fc2dd 100644 --- a/src/ec/packages/ec-component-site-header-core/site-header-core.story.js +++ b/src/ec/packages/ec-component-site-header-core/site-header-core.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, diff --git a/src/ec/packages/ec-component-site-header-harmonised/site-header-harmonised.story.js b/src/ec/packages/ec-component-site-header-harmonised/site-header-harmonised.story.js index 909d42168..5471e63a9 100644 --- a/src/ec/packages/ec-component-site-header-harmonised/site-header-harmonised.story.js +++ b/src/ec/packages/ec-component-site-header-harmonised/site-header-harmonised.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, diff --git a/src/ec/packages/ec-component-site-header-standardised/site-header-standardised.story.js b/src/ec/packages/ec-component-site-header-standardised/site-header-standardised.story.js index d2174dfa7..8c494b4ad 100644 --- a/src/ec/packages/ec-component-site-header-standardised/site-header-standardised.story.js +++ b/src/ec/packages/ec-component-site-header-standardised/site-header-standardised.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, diff --git a/src/ec/packages/ec-component-site-header/site-header.story.js b/src/ec/packages/ec-component-site-header/site-header.story.js index f658e18ab..ec4c0127a 100644 --- a/src/ec/packages/ec-component-site-header/site-header.story.js +++ b/src/ec/packages/ec-component-site-header/site-header.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import merge from 'deepmerge'; import { storiesOf } from '@storybook/html'; import { withKnobs, button } from '@storybook/addon-knobs'; diff --git a/src/ec/packages/ec-component-skip-link/skip-link.story.js b/src/ec/packages/ec-component-skip-link/skip-link.story.js index 42ce9aaf4..f340c0c22 100644 --- a/src/ec/packages/ec-component-skip-link/skip-link.story.js +++ b/src/ec/packages/ec-component-skip-link/skip-link.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, button } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-social-media-follow/social-media-follow.story.js b/src/ec/packages/ec-component-social-media-follow/social-media-follow.story.js index 9721485f4..9efba967b 100644 --- a/src/ec/packages/ec-component-social-media-follow/social-media-follow.story.js +++ b/src/ec/packages/ec-component-social-media-follow/social-media-follow.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-social-media-share/social-media-share.story.js b/src/ec/packages/ec-component-social-media-share/social-media-share.story.js index eaa251cc7..1d847a77c 100644 --- a/src/ec/packages/ec-component-social-media-share/social-media-share.story.js +++ b/src/ec/packages/ec-component-social-media-share/social-media-share.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-table/table.story.js b/src/ec/packages/ec-component-table/table.story.js index d8bd2cf5d..5cb479923 100644 --- a/src/ec/packages/ec-component-table/table.story.js +++ b/src/ec/packages/ec-component-table/table.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import { getExtraKnobs, tabLabels } from '@ecl-twig/story-utils'; diff --git a/src/ec/packages/ec-component-tag/tag.story.js b/src/ec/packages/ec-component-tag/tag.story.js index 21183da5b..8a2fadae9 100644 --- a/src/ec/packages/ec-component-tag/tag.story.js +++ b/src/ec/packages/ec-component-tag/tag.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-text-area/text-area.story.js b/src/ec/packages/ec-component-text-area/text-area.story.js index c70a9f9c3..a865c985a 100644 --- a/src/ec/packages/ec-component-text-area/text-area.story.js +++ b/src/ec/packages/ec-component-text-area/text-area.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-text-input/text-input.story.js b/src/ec/packages/ec-component-text-input/text-input.story.js index 06b9d198d..d15d4995d 100644 --- a/src/ec/packages/ec-component-text-input/text-input.story.js +++ b/src/ec/packages/ec-component-text-input/text-input.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withKnobs } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-timeline/timeline.story.js b/src/ec/packages/ec-component-timeline/timeline.story.js index 1a831f2fb..2bd2f8f34 100644 --- a/src/ec/packages/ec-component-timeline/timeline.story.js +++ b/src/ec/packages/ec-component-timeline/timeline.story.js @@ -1,4 +1,4 @@ -/* eslint-disable no-param-reassign,prefer-destructuring */ +/* eslint-disable prefer-destructuring */ import { storiesOf } from '@storybook/html'; import { withKnobs, number, text, select } from '@storybook/addon-knobs'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; diff --git a/src/ec/packages/ec-component-timeline/timeline.test.js b/src/ec/packages/ec-component-timeline/timeline.test.js index 2dff1d516..af685cae2 100644 --- a/src/ec/packages/ec-component-timeline/timeline.test.js +++ b/src/ec/packages/ec-component-timeline/timeline.test.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { merge, renderTwigFileAsNode } from '@ecl-twig/test-utils'; import demoData from './demo/data'; diff --git a/src/ec/packages/ec-component-unordered-list/unordered-list.story.js b/src/ec/packages/ec-component-unordered-list/unordered-list.story.js index ce6bcc58a..424799025 100644 --- a/src/ec/packages/ec-component-unordered-list/unordered-list.story.js +++ b/src/ec/packages/ec-component-unordered-list/unordered-list.story.js @@ -1,4 +1,3 @@ -/* eslint-disable no-param-reassign */ import { storiesOf } from '@storybook/html'; import { withNotes } from '@ecl-twig/storybook-addon-notes'; import { withKnobs, select, text } from '@storybook/addon-knobs';