Run eslint --fix

Summary:
CI is currently failing because of a lint issue, this fixes it and a bunch of other warnings that are auto-fixable.

**Test plan**
Quick manual test, cosmetic changes only.
Closes https://github.com/facebook/react-native/pull/16229

Differential Revision: D6009748

Pulled By: TheSavior

fbshipit-source-id: cabd44fed99dd90bd0b35626492719c139c89f34
This commit is contained in:
Janic Duplessis
2017-10-09 17:37:08 -07:00
committed by Facebook Github Bot
parent 32e5c8e5b5
commit 0cd69e8a02
58 changed files with 501 additions and 505 deletions

View File

@@ -31,7 +31,7 @@ class BlogPostFooter extends React.Component {
<div>
<aside className="author-info">
<div className="author-image">
<span className="the-image" style={{backgroundImage: "url(" + authorImage + ")"}}></span>
<span className="the-image" style={{backgroundImage: 'url(' + authorImage + ')'}} />
</div>
<p className="posted-on">Posted on <BlogPostDate post={post} /></p>
<p className="name-title">
@@ -50,9 +50,8 @@ class BlogPostFooter extends React.Component {
data-layout="standard"
data-share="true"
data-width="225"
data-show-faces="false">
</div>
<a href="https://twitter.com/share" className="twitter-share-button" data-text={post.title} data-url={"http://facebook.github.io/react-native/blog/" + post.path} data-via={post.authorTwitter} data-related="reactnative" data-show-count="false">Tweet</a>
data-show-faces="false" />
<a href="https://twitter.com/share" className="twitter-share-button" data-text={post.title} data-url={'http://facebook.github.io/react-native/blog/' + post.path} data-via={post.authorTwitter} data-related="reactnative" data-show-count="false">Tweet</a>
</div>
</aside>
</div>

View File

@@ -24,18 +24,18 @@ class BlogPostHeader extends React.Component {
}
var title = post.title;
var href = "/react-native/blog/" + post.path;
var href = '/react-native/blog/' + post.path;
if (this.props.excerpt) {
title = <a href={href}>{post.title}</a>;
hero = <a href={href}>{hero}</a>;
}
if (post.youtubeVideoId) {
var embedURL = "https://www.youtube.com/embed/" + post.youtubeVideoId;
var embedURL = 'https://www.youtube.com/embed/' + post.youtubeVideoId;
hero = <div className="video-container youtube">
<iframe id="ytplayer" type="text/html" width="650" height="345"
src={embedURL}
frameBorder="0"></iframe>
frameBorder="0" />
</div>;
}

View File

@@ -15,10 +15,10 @@ var React = require('React');
class ExcerptLink extends React.Component {
render() {
var cta = "Read more";
var cta = 'Read more';
if (this.props.category === "videos") {
cta = "Watch video";
if (this.props.category === 'videos') {
cta = 'Watch video';
}
return (