Skip to content

Commit 89fdfe6

Browse files
committed
upgrade packages & fix linting errors
1 parent 3e02894 commit 89fdfe6

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
},
4545
"devDependencies": {
4646
"alex": "^2.0.1",
47-
"babel-cli": "^6.6.0",
48-
"babel-core": "^6.6.0",
47+
"babel-cli": "^6.6.4",
48+
"babel-core": "^6.6.4",
4949
"babel-eslint": "^5.0.0",
5050
"babel-jest": "^6.0.1",
5151
"babel-loader": "^6.2.4",
@@ -60,9 +60,9 @@
6060
"eslint-config-airbnb": "6.0.2",
6161
"eslint-plugin-mocha": "^2.0.0",
6262
"eslint-plugin-react": "^4.1.0",
63-
"flow-bin": "^0.22.0",
63+
"flow-bin": "^0.22.1",
6464
"jest-cli": "^0.8.2",
65-
"jscs": "^2.10.1",
65+
"jscs": "^2.11.0",
6666
"react": "^0.14.7",
6767
"react-addons-test-utils": "^0.14.7",
6868
"react-dom": "^0.14.7",
@@ -72,7 +72,7 @@
7272
"style-loader": "^0.13.0",
7373
"webpack": "^1.12.14",
7474
"webpack-dev-middleware": "^1.5.1",
75-
"webpack-hot-middleware": "=2.7.1"
75+
"webpack-hot-middleware": "=2.9.1"
7676
},
7777
"jest": {
7878
"testRunner": "<rootDir>/node_modules/jest-cli/src/testRunners/jasmine/jasmine2.js",

site/components/CodeHighlight/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ import {
22
default as React,
33
Component,
44
PropTypes,
5-
} from "react";
5+
} from 'react';
66

77
import {
88
default as ReactComponentWithPureRenderMixin,
9-
} from "react-addons-pure-render-mixin";
9+
} from 'react-addons-pure-render-mixin';
10+
11+
import Prism from 'prismjs';
1012

1113
export default class Code extends Component {
1214
static propTypes = {
1315
className: PropTypes.string,
14-
children: PropTypes.any,
16+
code: PropTypes.string,
1517
};
1618

1719
componentDidMount() {
@@ -29,7 +31,7 @@ export default class Code extends Component {
2931
}
3032

3133
render() {
32-
const className = (this.props.language ? 'language-' + this.props.language : '');
34+
const className = (this.props.language ? `language-${this.props.language}` : '');
3335
return (
3436
<code
3537
ref="code"

site/components/StatePreview/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from 'react';
22
import styles from './styles';
33

4-
import Code from "../CodeHighlight";
4+
import Code from '../CodeHighlight';
55

66
export default class StatePreview extends Component {
77

site/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ <h2 class="available-plugins">Available Plugins</h2>
4545
</span>
4646
on Planet Earth :)
4747
</footer>
48-
<script src="node_modules/prismjs/prism.js"></script>
4948
<script src="static/bundle.js"></script>
5049
</body>
5150
</html>

site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"react-dom": "^=0.14.7"
2020
},
2121
"devDependencies": {
22-
"babel-core": "^6.6.0",
22+
"babel-core": "^6.6.4",
2323
"babel-loader": "^6.2.4",
2424
"eslint": "^2.2.0",
2525
"eslint-config-airbnb": "^6.0.2",

0 commit comments

Comments
 (0)