Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Set up CI with Azure Pipelines #22

Merged
merged 5 commits into from
Feb 21, 2019
Merged

Set up CI with Azure Pipelines #22

merged 5 commits into from
Feb 21, 2019

Conversation

anapaulagomes
Copy link
Owner

@anapaulagomes anapaulagomes commented Feb 19, 2019

Resolves #4.

@anapaulagomes
Copy link
Owner Author

anapaulagomes commented Feb 19, 2019

Hey @lucashanke, I had to re-configure it because Azure messed it up a bit (I renamed the repo 😅 so the builds were mixed up). Also, now our build is public and you is part of the team. Can you try accessing it again please? https://dev.azure.com/apgomes88/Pardal/_build/results?buildId=48

@lucashanke
Copy link
Collaborator

lucashanke commented Feb 19, 2019

It's fine now, @anapaulagomes! Thanks ;)

The step is failling due to lint issues. We need to fix them. Can we wait to that after #19 is merged?

@anapaulagomes
Copy link
Owner Author

Sure thing, @lucashanke. I'll take a look tonight.

@anapaulagomes
Copy link
Owner Author

It took me a while to understand that the linter is working fine. 😂

Copy link
Collaborator

@lucashanke lucashanke left a comment

Choose a reason for hiding this comment

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

I think it looks great, @anapaulagomes! Thanks for fixing all the linting issues. I just left a comment regarding trailing commas, which is a common practice and I find them quite clean. https://github.com/airbnb/javascript#commas--dangling

screen_name: ['user', 'screen_name'], // nested keys
message: ['full_text'],
when: ['created_at'],
from: ['source'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

The linter is complaining about trailing commas? I think they're part of Airbnb style guides. And I quite like them as well. ;)

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yep, this was fixed by npm run lint -- --fix. I liked it too. :)

Copy link
Owner Author

Choose a reason for hiding this comment

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

Shall we change something on our .eslintrc.json? It should be applying airbnb-style, right?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, in theory. I've jest removed the prettier plugin and eslint now is complaining about missing trailing comma.

Apparently prettier is overriding some rules. :(

Copy link
Collaborator

Choose a reason for hiding this comment

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

Figured it out! It is the order of the 'extends' option in eslint config file that dictates the priority of the rules. Just pushed the change. Can you check if it's complaining about trailing commas for you too?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Just saw that CI was failing due to the missing trailing commas. ;)

Just fixed the issues and pushed the changes.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Cool! Thanks for your help. 💃

@anapaulagomes
Copy link
Owner Author

Since the mystery of trailing commas was solved, I'm gonna merge this. 🎉

@anapaulagomes anapaulagomes merged commit ff2b0a9 into master Feb 21, 2019
@anapaulagomes anapaulagomes deleted the azure-ci branch February 21, 2019 07:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants