From 02e62ad5d647fdf0079421f3c02655becd33e123 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 2 Dec 2017 16:08:56 -0800 Subject: [PATCH] Lint fixes --- .../1-components/Image/ImageBackgroundScreen.js | 13 ++----------- src/components/Image/index.js | 6 ++++-- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/docs/storybook/1-components/Image/ImageBackgroundScreen.js b/docs/storybook/1-components/Image/ImageBackgroundScreen.js index e7c83779..b3b70b8f 100644 --- a/docs/storybook/1-components/Image/ImageBackgroundScreen.js +++ b/docs/storybook/1-components/Image/ImageBackgroundScreen.js @@ -6,20 +6,11 @@ import React from 'react'; import PropChildren from './examples/PropChildren'; -import UIExplorer, { - AppText, - Code, - Description, - DocItem, - Section, - storiesOf -} from '../../ui-explorer'; +import UIExplorer, { Description, DocItem, Section, storiesOf } from '../../ui-explorer'; const ImageBackgroundScreen = () => ( - - A image component with support for child content. - + A image component with support for child content.
diff --git a/src/components/Image/index.js b/src/components/Image/index.js index d030cb18..465f9ea4 100644 --- a/src/components/Image/index.js +++ b/src/components/Image/index.js @@ -22,7 +22,7 @@ import StyleSheet from '../../apis/StyleSheet'; import StyleSheetPropType from '../../propTypes/StyleSheetPropType'; import View from '../View'; import ViewPropTypes from '../View/ViewPropTypes'; -import { any, bool, func, number, oneOf, oneOfType, shape, string } from 'prop-types'; +import { bool, func, number, oneOf, oneOfType, shape, string } from 'prop-types'; import React, { Component } from 'react'; const emptyObject = {}; @@ -225,7 +225,9 @@ class Image extends Component<*, State> { } if (this.props.children) { - throw new Error('The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.'); + throw new Error( + 'The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.' + ); } }