From 11377c903c67cf522422d5d5edaec1551900fd91 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 17 Mar 2020 13:36:33 +0200 Subject: [PATCH] chore: fix ts error, use name but cannot be named --- .eslintrc.js | 1 + src/components/PayloadSamples/PayloadSamples.tsx | 4 ++++ src/components/PayloadSamples/styled.elements.ts | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 589424a6f2..1455e63a8a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -25,6 +25,7 @@ module.exports = { '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/no-inferrable-types': 'off', '@typescript-eslint/no-non-null-assertion': 'off', + '@typescript-eslint/ban-ts-ignore': 'off', 'react/prop-types': 'off', diff --git a/src/components/PayloadSamples/PayloadSamples.tsx b/src/components/PayloadSamples/PayloadSamples.tsx index 7e2a85f038..36f232fff9 100644 --- a/src/components/PayloadSamples/PayloadSamples.tsx +++ b/src/components/PayloadSamples/PayloadSamples.tsx @@ -1,3 +1,7 @@ +// @ts-ignore +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import ReactDropdown from 'react-dropdown'; + import { observer } from 'mobx-react'; import * as React from 'react'; import { MediaTypeSamples } from './MediaTypeSamples'; diff --git a/src/components/PayloadSamples/styled.elements.ts b/src/components/PayloadSamples/styled.elements.ts index 944db934ca..5dd3f41a07 100644 --- a/src/components/PayloadSamples/styled.elements.ts +++ b/src/components/PayloadSamples/styled.elements.ts @@ -1,3 +1,7 @@ +// @ts-ignore +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import ReactDropdown from 'react-dropdown'; + import { transparentize } from 'polished'; import styled from '../../styled-components';