Upgrade eslint and friends

This commit is contained in:
Kyle Mathews 2016-03-12 23:50:02 -08:00
parent 21e9abb899
commit 8ba3990076
4 changed files with 9 additions and 8 deletions

View file

@ -10,6 +10,7 @@
"no-else-return": [0],
"space-infix-ops": [0],
"react/prefer-es6-class": [0],
"react/prefer-stateless-function": [0],
},
"globals": {
"__PREFIX_LINKS__": true,

View file

@ -19,20 +19,20 @@ export default class Html extends React.Component {
return (
<html lang="en">
<head>
<meta charSet="utf-8"/>
<meta httpEquiv="X-UA-Compatible" content="IE=edge"/>
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="user-scalable=no width=device-width, initial-scale=1.0 maximum-scale=1.0"
/>
<title>{this.props.title}</title>
<link rel="shortcut icon" href={favicon} />
<TypographyStyle/>
<TypographyStyle />
{cssLink}
</head>
<body className="landing-page">
<div id="react-mount" dangerouslySetInnerHTML={{ __html: body }} />
<script src={link('/bundle.js')}/>
<script src={link('/bundle.js')} />
</body>
</html>
)

View file

@ -35,9 +35,9 @@
},
"devDependencies": {
"babel-plugin-react-transform": "^1.1.1",
"eslint": "^1.10.3",
"eslint-config-airbnb": "^5.0.1",
"eslint-plugin-react": "^3.16.1",
"eslint": "^2.4.0",
"eslint-config-airbnb": "^6.1.0",
"eslint-plugin-react": "^4.2.1",
"gh-pages": "^0.11.0",
"react-transform-catch-errors": "^1.0.0",
"react-transform-hmr": "^1.0.0",

View file

@ -17,7 +17,7 @@ class MarkdownWrapper extends React.Component {
<DocumentTitle title={`${post.title} | ${config.blogTitle}`}>
<div className="markdown">
<h1>{post.title}</h1>
<div dangerouslySetInnerHTML={{ __html: post.body }}/>
<div dangerouslySetInnerHTML={{ __html: post.body }} />
<em
style={{
display: 'block',