fix all linting errors

This commit is contained in:
catarak 2016-06-27 17:22:54 -04:00
parent c9a3b5b6c8
commit cfd4d998cf
3 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ class App extends React.Component {
} }
componentDidMount() { componentDidMount() {
this.setState({ isMounted: true }); // eslint-disable-line no-did-mount-set-state this.setState({ isMounted: true }); // eslint-disable-line react/no-did-mount-set-state
} }
render() { render() {

View File

@ -49,7 +49,7 @@ class PreviewFrame extends React.Component {
renderFrameContents() { renderFrameContents() {
const doc = ReactDOM.findDOMNode(this).contentDocument; const doc = ReactDOM.findDOMNode(this).contentDocument;
if (doc.readyState === 'complete') { if (doc.readyState === 'complete') {
renderSketch(); this.renderSketch();
} else { } else {
setTimeout(this.renderFrameContents, 0); setTimeout(this.renderFrameContents, 0);
} }

View File

@ -33,7 +33,8 @@ function Toolbar(props) {
<div className="toolbar__project-name-container"> <div className="toolbar__project-name-container">
<span <span
className="toolbar__project-name" className="toolbar__project-name"
onBlur={props.setProjectName.bind(this)} // TODO change this span into an input
onBlur={props.setProjectName.bind(this)} // eslint-disable-line
contentEditable contentEditable
suppressContentEditableWarning suppressContentEditableWarning
> >