Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update eslint-plugin-react to version 7.1.0 #12

Merged
merged 1 commit into from
Jul 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion __tests__/fixtures/react/invalid.js
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
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
Expand Up @@ -26,6 +26,6 @@
},
"dependencies": {
"babel-eslint": "^7.1.1",
"eslint-plugin-react": "^6.9.0"
"eslint-plugin-react": "^7.1.0"
}
}