Skip to content

Commit

Permalink
Create .eslintrc to resolve reach#64
Browse files Browse the repository at this point in the history
  • Loading branch information
stunstunstun authored and ryanflorence committed Jun 11, 2018
1 parent db73687 commit d5f6dfc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
9 changes: 9 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "react-app",
"globals": {
"__DEV__": true
},
"rules": {
"react/prop-types": ["warn", { "ignore": ["children"] }]
}
}
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,6 @@
"prettier": {
"printWidth": 80
},
"eslintConfig": {
"extends": "react-app",
"globals": {
"__DEV__": true
}
},
"dependencies": {
"create-react-context": "^0.2.1",
"invariant": "^2.2.3",
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ let Location = ({ children }) => (
);

class LocationProvider extends React.Component {
static propTypes = {
history: PropTypes.object.isRequired
};

static defaultProps = {
history: globalHistory
};
Expand Down

0 comments on commit d5f6dfc

Please sign in to comment.