Skip to content

Commit

Permalink
Update eslint-plugin-react to version 7.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Feldmann committed Jul 18, 2017
1 parent 72860dd commit 4bf78de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion __tests__/fixtures/react/invalid.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* to eschew the "id" and "for" unless you want to employ some very hacky solutions
*/
import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.css';

class Accordion extends React.Component {
Expand All @@ -18,7 +19,7 @@ class Accordion extends React.Component {
}
}

const { number, string } = React.PropTypes;
const { number, string } = PropTypes;

Accordion.propTypes = {
label: string,
Expand Down
3 changes: 2 additions & 1 deletion __tests__/fixtures/react/valid.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* to eschew the "id" and "for" unless you want to employ some very hacky solutions
*/
import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.css';

const Accordion = ({ name, value, checked, label, children }) => {
Expand All @@ -16,7 +17,7 @@ const Accordion = ({ name, value, checked, label, children }) => {
);
};

const { number, string } = React.PropTypes;
const { number, string } = PropTypes;

Accordion.propTypes = {
label: string,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
},
"dependencies": {
"babel-eslint": "^7.1.1",
"eslint-plugin-react": "^6.9.0"
"eslint-plugin-react": "^7.1.0"
}
}

0 comments on commit 4bf78de

Please sign in to comment.