Run eslint --fix

Fixing 1000s of lint issues. Some rules cannot be `--fix`ed but this goes some way to linting the entire codebase.
This commit is contained in:
Luke Barnard 2017-10-11 17:56:17 +01:00
parent 8958be9321
commit d3f9a3aeb5
136 changed files with 2540 additions and 2657 deletions

View file

@ -2,7 +2,7 @@
*/
'use strict';
var React = require('react');
const React = require('react');
module.exports = function(opts) {
opts = opts || {};
@ -12,8 +12,8 @@ module.exports = function(opts) {
if (!opts.render) {
opts.render = function() {
return <div>{this.displayName}</div>;
}
return <div>{ this.displayName }</div>;
};
}
return React.createClass(opts);