-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eslint and prettier #1407
base: master
Are you sure you want to change the base?
Eslint and prettier #1407
Conversation
Deploy previews are ready 😎 |
Most of this PR is just line noise from |
@@ -20,9 +20,7 @@ class Content extends Component { | |||
if (blockType === "ad") { | |||
return this.renderAd(block, key); | |||
} | |||
if (blockType === "paragraph") { | |||
return this.renderParagraph(block, key); | |||
} else if (blockType === "headline") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the very few non-formatter changes: htmlToReactParser
is always undefined
in the renderParagraph
function, so calling renderParagraph
would always fail -- since it hasn't been a problem, we aren't rendering any blocks with the type being paragraph
.
@@ -2,15 +2,10 @@ import React from "react"; | |||
import ReactDOM from "react-dom"; | |||
import "basscss/css/basscss-cp.css"; | |||
|
|||
// yup, welcome to react 16 | |||
import createReactClass from "create-react-class"; | |||
React.createClass = createReactClass; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A handful of services define createClass
in their index.js files. None of the generated code refers to that function.
All of the other non-formatting changes should be just unused imports / variables / parameters. |
No description provided.