Skip to content
Permalink
Browse files

Fix lint errors

  • Loading branch information...
vadimdemedes committed Feb 17, 2019
1 parent 97cb4f9 commit 300fce295ce5f490001d890c0bf7d5742795ff86
Showing with 8 additions and 5 deletions.
  1. +5 −5 examples/counter/counter.js
  2. +1 −0 package.json
  3. +2 −0 src/vendor/log-update.js
@@ -7,23 +7,23 @@ class Counter extends React.Component {
super();

this.state = {
i: 0
counter: 0
};
}

render() {
return (
<Color green>
{this.state.i} tests passed
{this.state.counter} tests passed
</Color>
);
}

componentDidMount() {
this.timer = setInterval(() => {
this.setState({
i: this.state.i + 1
});
this.setState(prevState => ({
counter: prevState.counter + 1
}));
}, 100);
}

@@ -49,6 +49,7 @@
"slice-ansi": "^1.0.0",
"string-length": "^2.0.0",
"widest-line": "^2.0.0",
"wrap-ansi": "^4.0.0",
"yoga-layout-prebuilt": "^1.9.3"
},
"devDependencies": {
@@ -1,4 +1,6 @@
// Fork of `log-update` without `wrap-ansi` until https://github.com/chalk/wrap-ansi/issues/27 is closed
// Disable some eslint rules to closely match the original source
/* eslint-disable prefer-destructuring, prefer-object-spread, prefer-rest-params */
'use strict';
const ansiEscapes = require('ansi-escapes');
const cliCursor = require('cli-cursor');

0 comments on commit 300fce2

Please sign in to comment.
You can’t perform that action at this time.