Skip to content
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 in Harmony #91

Merged
merged 11 commits into from
Jul 18, 2018
Merged

ESLint and Prettier in Harmony #91

merged 11 commits into from
Jul 18, 2018

Conversation

i-like-robots
Copy link
Contributor

@i-like-robots i-like-robots commented Jul 12, 2018

Fixes #85

I haven't enabled the prettier plugin because it needs to do quite a bit of work to make itself happy... one for another PR!

I've tried to fix the eslint errors where possible to do so.

@@ -134,7 +134,6 @@ module.exports = ({tasks, prompt, addPrompt}) => ({
async run(options) {
const port = parseInt(url.parse(openUrls.storybook).port, 10);
if(await tcpPortUsed.check(port)) {
console.log();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was there deliberately. i like some whitespace in my cli output 🙂

@@ -16,13 +16,15 @@ export class InteractionClass extends Component {
// additional render will be scheduled.
Promise.resolve().then(() => {
this.setState({ [loading]: true }, () => {
/* eslint no-console:off */
console.log('didsetloading', this.state[loading]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these shouldn't be here but they're removed in #59

@@ -62,9 +65,9 @@ export default class Search extends Component {
</div>;
}

search = ev => {
search (ev) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will need to be bound now

@@ -72,25 +72,20 @@ const xPoints = ({x, y, width, height, thickness}) => {
}

export default class XLogo extends Component {
static defaultProps = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these missing default props are breaking the build

@apaleslimghost
Copy link
Member

was just about to approve but noticed the base branch is matth/migration-guide-tweaks which was merged, can you update to master plz

@i-like-robots i-like-robots changed the base branch from matth/migration-guide-tweaks to master July 17, 2018 17:18
@i-like-robots
Copy link
Contributor Author

Woah, good spot!

@apaleslimghost
Copy link
Member

i mean, it had all the letters of master in it, just a few others as well

@i-like-robots i-like-robots merged commit 086fc2e into master Jul 18, 2018
@i-like-robots i-like-robots deleted the matth/eslint branch July 18, 2018 10:17
@i-like-robots i-like-robots added this to the v1.0.0-beta.1 milestone Jul 26, 2018
@i-like-robots i-like-robots added the housekeeping Cleaning things up label Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Cleaning things up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSLint and Prettier
2 participants