Upgrade eslint and friends
This commit is contained in:
parent
21e9abb899
commit
8ba3990076
4 changed files with 9 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
8
html.js
8
html.js
|
|
@ -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>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue