diff --git a/.eslintrc b/.eslintrc index f4fdfb7..8edd7ed 100644 --- a/.eslintrc +++ b/.eslintrc @@ -10,6 +10,7 @@ "react/jsx-filename-extension": [0], "react/prefer-es6-class": [0], "react/prefer-stateless-function": [0], + "react/forbid-prop-types": [0], /* to allow importing 'gatsby-helpers' */ "import/no-extraneous-dependencies": [0], "import/no-unresolved": [0], diff --git a/pages/_template.jsx b/pages/_template.jsx index d1f7432..8f13fce 100644 --- a/pages/_template.jsx +++ b/pages/_template.jsx @@ -1,28 +1,23 @@ -import React from 'react' -import { Link } from 'react-router' -import { prefixLink } from 'gatsby-helpers' -import { config } from 'config' +import React from 'react'; -import '../static/css/reset.css' -import '../static/css/typography.css' -import '../static/css/base.css' +import '../static/css/reset.css'; +import '../static/css/typography.css'; +import '../static/css/base.css'; class Template extends React.Component { - render() { - const {location, children} = this.props + render() { + const { children } = this.props; - return ( -
- { children } -
- ); - } + return ( +
+ {children} +
+ ); + } } Template.propTypes = { - children: React.PropTypes.any, - location: React.PropTypes.object, - route: React.PropTypes.object, -} + children: React.PropTypes.any, +}; -export default Template \ No newline at end of file +export default Template; diff --git a/wrappers/md.jsx b/wrappers/md.jsx index 2ca54ee..2d9e5b5 100644 --- a/wrappers/md.jsx +++ b/wrappers/md.jsx @@ -28,7 +28,7 @@ class MarkdownWrapper extends React.Component { } MarkdownWrapper.propTypes = { - route: React.PropTypes.object, // eslint-disable-line react/forbid-prop-types + route: React.PropTypes.object, }; export default MarkdownWrapper;