mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 23:09:16 +01:00
refactor: fixing linting error in pages/_template.jsx
adds react/forbid-prop-types to be ignored in eslintrc could be added in an additional refactoring round right now, I'm not sure what to choose as proptypes...
This commit is contained in:
parent
b683c5d7e3
commit
a1cee07124
@ -10,6 +10,7 @@
|
|||||||
"react/jsx-filename-extension": [0],
|
"react/jsx-filename-extension": [0],
|
||||||
"react/prefer-es6-class": [0],
|
"react/prefer-es6-class": [0],
|
||||||
"react/prefer-stateless-function": [0],
|
"react/prefer-stateless-function": [0],
|
||||||
|
"react/forbid-prop-types": [0],
|
||||||
/* to allow importing 'gatsby-helpers' */
|
/* to allow importing 'gatsby-helpers' */
|
||||||
"import/no-extraneous-dependencies": [0],
|
"import/no-extraneous-dependencies": [0],
|
||||||
"import/no-unresolved": [0],
|
"import/no-unresolved": [0],
|
||||||
|
@ -1,28 +1,23 @@
|
|||||||
import React from 'react'
|
import React from 'react';
|
||||||
import { Link } from 'react-router'
|
|
||||||
import { prefixLink } from 'gatsby-helpers'
|
|
||||||
import { config } from 'config'
|
|
||||||
|
|
||||||
import '../static/css/reset.css'
|
import '../static/css/reset.css';
|
||||||
import '../static/css/typography.css'
|
import '../static/css/typography.css';
|
||||||
import '../static/css/base.css'
|
import '../static/css/base.css';
|
||||||
|
|
||||||
class Template extends React.Component {
|
class Template extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
const {location, children} = this.props
|
const { children } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='wrapper'>
|
<div className="wrapper">
|
||||||
{ children }
|
{children}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Template.propTypes = {
|
Template.propTypes = {
|
||||||
children: React.PropTypes.any,
|
children: React.PropTypes.any,
|
||||||
location: React.PropTypes.object,
|
};
|
||||||
route: React.PropTypes.object,
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Template
|
export default Template;
|
||||||
|
@ -28,7 +28,7 @@ class MarkdownWrapper extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MarkdownWrapper.propTypes = {
|
MarkdownWrapper.propTypes = {
|
||||||
route: React.PropTypes.object, // eslint-disable-line react/forbid-prop-types
|
route: React.PropTypes.object,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default MarkdownWrapper;
|
export default MarkdownWrapper;
|
||||||
|
Loading…
Reference in New Issue
Block a user