This repository was archived by the owner on Aug 5, 2020. It is now read-only.
File tree 4 files changed +13
-14
lines changed
4 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 2
2
"extends": "eslint-config-airbnb",
3
3
"env": {
4
4
"browser": true,
5
- "mocha": true ,
5
+ "mocha": false ,
6
6
"node": true
7
7
},
8
8
"rules": {
Original file line number Diff line number Diff line change 34
34
"babel-plugin-transform-react-jsx" : " ^6.0.18" ,
35
35
"babel-preset-es2015" : " ^6.1.2" ,
36
36
"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 " ,
40
40
"rimraf" : " ^2.3.4" ,
41
41
"webpack" : " ^1.11.0"
42
42
},
43
- "peerDependencies" : {
44
- "react" : " ^0.14.0" ,
45
- "redux-devtools" : " ^3.0.0-beta-3"
46
- },
47
43
"dependencies" : {
48
44
"d3-state-visualizer" : " ^0.5.0" ,
49
45
"deepmerge" : " ^0.2.10" ,
50
46
"react-pure-render" : " ^1.0.2" ,
47
+ "redux-devtools" : " ^3.0.0" ,
51
48
"redux-devtools-themes" : " ^1.0.0"
52
49
}
53
50
}
Original file line number Diff line number Diff line change 1
1
import React , { PropTypes , Component } from 'react' ;
2
2
import visualizer from 'd3-state-visualizer' ;
3
3
4
- export default class Chart extends Component {
5
- constructor ( props ) {
6
- super ( props ) ;
7
- }
8
-
4
+ class Chart extends Component {
9
5
static propTypes = {
10
6
state : PropTypes . object ,
11
7
rootKeyName : React . PropTypes . string ,
@@ -33,6 +29,10 @@ export default class Chart extends Component {
33
29
} )
34
30
} ;
35
31
32
+ constructor ( props ) {
33
+ super ( props ) ;
34
+ }
35
+
36
36
componentDidMount ( ) {
37
37
this . renderChart = visualizer . charts . tree ( React . findDOMNode ( this ) , this . props ) ;
38
38
this . renderChart ( ) ;
@@ -47,3 +47,5 @@ export default class Chart extends Component {
47
47
return < div /> ;
48
48
}
49
49
}
50
+
51
+ export default Chart ;
Original file line number Diff line number Diff line change 1
1
import { SOME_ACTION } from './actions' ;
2
2
3
- function someAction ( state = 0 , action , props ) {
3
+ function someAction ( state = 0 , action /* , props*/ ) {
4
4
return action . type === SOME_ACTION ?
5
5
action . data :
6
6
state ;
You can’t perform that action at this time.
0 commit comments