diff --git a/packages/nivo-bar/tests/.eslintrc.yml b/packages/nivo-bar/tests/.eslintrc.yml new file mode 100644 index 000000000..2f8de9aea --- /dev/null +++ b/packages/nivo-bar/tests/.eslintrc.yml @@ -0,0 +1,2 @@ +env: + jest: true diff --git a/packages/nivo-scales/src/LinearScale.js b/packages/nivo-scales/src/LinearScale.js index 69890b5e1..a5da21db2 100644 --- a/packages/nivo-scales/src/LinearScale.js +++ b/packages/nivo-scales/src/LinearScale.js @@ -6,7 +6,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ -import React, { PureComponent } from 'react' +import { PureComponent } from 'react' import PropTypes from 'prop-types' import { computeLinearScale } from './compute' diff --git a/packages/nivo-scales/src/Scales.js b/packages/nivo-scales/src/Scales.js index 64323b038..f7c64fcca 100644 --- a/packages/nivo-scales/src/Scales.js +++ b/packages/nivo-scales/src/Scales.js @@ -16,6 +16,7 @@ const Scales = ({ computedScales, children }) => {children(computedSca Scales.propTypes = { children: PropTypes.func.isRequired, + computedScales: PropTypes.object.isRequired, } const enhance = compose(