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], "no-else-return": [0],
"space-infix-ops": [0], "space-infix-ops": [0],
"react/prefer-es6-class": [0], "react/prefer-es6-class": [0],
"react/prefer-stateless-function": [0],
}, },
"globals": { "globals": {
"__PREFIX_LINKS__": true, "__PREFIX_LINKS__": true,

View file

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

View file

@ -35,9 +35,9 @@
}, },
"devDependencies": { "devDependencies": {
"babel-plugin-react-transform": "^1.1.1", "babel-plugin-react-transform": "^1.1.1",
"eslint": "^1.10.3", "eslint": "^2.4.0",
"eslint-config-airbnb": "^5.0.1", "eslint-config-airbnb": "^6.1.0",
"eslint-plugin-react": "^3.16.1", "eslint-plugin-react": "^4.2.1",
"gh-pages": "^0.11.0", "gh-pages": "^0.11.0",
"react-transform-catch-errors": "^1.0.0", "react-transform-catch-errors": "^1.0.0",
"react-transform-hmr": "^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}`}> <DocumentTitle title={`${post.title} | ${config.blogTitle}`}>
<div className="markdown"> <div className="markdown">
<h1>{post.title}</h1> <h1>{post.title}</h1>
<div dangerouslySetInnerHTML={{ __html: post.body }}/> <div dangerouslySetInnerHTML={{ __html: post.body }} />
<em <em
style={{ style={{
display: 'block', display: 'block',