Skip to content
This repository was archived by the owner on Aug 5, 2020. It is now read-only.

Commit 4f6c9d1

Browse files
committed
Fix eslint
1 parent c24d88b commit 4f6c9d1

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "eslint-config-airbnb",
33
"env": {
44
"browser": true,
5-
"mocha": true,
5+
"mocha": false,
66
"node": true
77
},
88
"rules": {

package.json

+4-7
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,17 @@
3434
"babel-plugin-transform-react-jsx": "^6.0.18",
3535
"babel-preset-es2015": "^6.1.2",
3636
"babel-preset-stage-0": "^6.1.2",
37-
"eslint": "^1.10",
38-
"eslint-config-airbnb": "2.0.0",
39-
"eslint-plugin-react": "^3.11.3",
37+
"eslint": "^0.23",
38+
"eslint-config-airbnb": "0.0.6",
39+
"eslint-plugin-react": "^2.3.0",
4040
"rimraf": "^2.3.4",
4141
"webpack": "^1.11.0"
4242
},
43-
"peerDependencies": {
44-
"react": "^0.14.0",
45-
"redux-devtools": "^3.0.0-beta-3"
46-
},
4743
"dependencies": {
4844
"d3-state-visualizer": "^0.5.0",
4945
"deepmerge": "^0.2.10",
5046
"react-pure-render": "^1.0.2",
47+
"redux-devtools": "^3.0.0",
5148
"redux-devtools-themes": "^1.0.0"
5249
}
5350
}

src/Chart.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import React, { PropTypes, Component } from 'react';
22
import visualizer from 'd3-state-visualizer';
33

4-
export default class Chart extends Component {
5-
constructor(props) {
6-
super(props);
7-
}
8-
4+
class Chart extends Component {
95
static propTypes = {
106
state: PropTypes.object,
117
rootKeyName: React.PropTypes.string,
@@ -33,6 +29,10 @@ export default class Chart extends Component {
3329
})
3430
};
3531

32+
constructor(props) {
33+
super(props);
34+
}
35+
3636
componentDidMount() {
3737
this.renderChart = visualizer.charts.tree(React.findDOMNode(this), this.props);
3838
this.renderChart();
@@ -47,3 +47,5 @@ export default class Chart extends Component {
4747
return <div/>;
4848
}
4949
}
50+
51+
export default Chart;

src/reducers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { SOME_ACTION } from './actions';
22

3-
function someAction(state = 0, action, props) {
3+
function someAction(state = 0, action/*, props*/) {
44
return action.type === SOME_ACTION ?
55
action.data :
66
state;

0 commit comments

Comments
 (0)