File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 235
235
"space-unary-ops": 2,
236
236
237
237
/* ES6+ */
238
+
238
239
// disallow using `var`. Must use `let` or `const`
239
240
"no-var": 2,
240
241
"no-class-assign": 2,
248
249
"arrow-spacing": 2,
249
250
"prefer-arrow-callback": 2,
250
251
"arrow-parens": [0, "as-needed"],
252
+
253
+ /* React */
254
+
255
+ // Prevent React to be incorrectly marked as unused
256
+ "react/jsx-uses-react": 2,
251
257
},
252
258
"env": {
253
259
"browser": true,
258
264
},
259
265
"ecmaFeatures": {
260
266
"jsx": true
261
- }
267
+ },
268
+ "plugins": [
269
+ "react"
270
+ ]
262
271
}
Original file line number Diff line number Diff line change 69
69
"babel-register" : " ^6.7.2" ,
70
70
"chai" : " ^3.5.0" ,
71
71
"eslint" : " ^2.10.2" ,
72
+ "eslint-plugin-react" : " 5.1.1" ,
72
73
"mocha" : " ^2.4.5" ,
73
74
"promise" : " ^7.1.1" ,
74
75
"react" : " ^15.0.2" ,
Original file line number Diff line number Diff line change 1
- import { Component , PropTypes } from 'react' ;
1
+ import React , { Component , PropTypes } from 'react' ;
2
2
import { Subscription } from 'rxjs/Subscription' ;
3
3
4
4
const $$reduxObservableSubscription = '@@reduxObservableSubscription' ;
You can’t perform that action at this time.
0 commit comments