Skip to content

Add linter and formatter config #36

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

Merged

Conversation

0x-shanks
Copy link
Contributor

@0x-shanks 0x-shanks commented Apr 19, 2022

object

  • Add formatter settings for multi-person development
  • Running lint and tests with CI

spec

  • link sollint and prettier to avoid conflicts
  • add eslint for js files
  • add CI

@0x-shanks 0x-shanks marked this pull request as ready for review April 19, 2022 14:39
@0x-shanks
Copy link
Contributor Author

0x-shanks commented Apr 19, 2022

Is github action disabled? Perhaps we have a policy of not using it?

with:
node-version: '16'
- name: Install Yarn
run: npm install -g yarn
Copy link
Contributor

@SamuraiT SamuraiT Apr 20, 2022

Choose a reason for hiding this comment

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

when you use actions/checkout i think already yarn install process should be done.
maybe can you play around first by setting on: manual ?
I will ask to add you this org so I think you will be able to do so. just wait a moment

Copy link
Contributor Author

@0x-shanks 0x-shanks Apr 20, 2022

Choose a reason for hiding this comment

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

I think I need to install yarn itself since the repository does not contain the yarn bin after checking out, is this correct?

I was verifying using act locally and was unable to use yarn in actions/setup-node@v3, so I am writing this based on this comment.

I should have written a comment because it's hard to understand.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok

@0x-shanks
Copy link
Contributor Author

The lint outputs errors, but does not format the source itself to prevent conflicts.

@geeknees
Copy link
Member

@hourglasshoro

The github action seems to be working. Good job.

The lint outputs errors, but does not format the source itself to prevent conflicts.

Do you mean to make this one a separate PR? If so, I am going to approve.

@0x-shanks
Copy link
Contributor Author

I wanted to say that we will not be formatting the existing code, as it looks like quite a lot of modifications in the PR here!
https://github.com/henkaku-center/podcast-nft/pull/37/files

So I won't be issuing any additional PRs myself.

I hope you don't mind that this PR CI is failing. If it seems looks good, I'd like to merge it.

@geeknees
Copy link
Member

Understood! Thanks for the clarification!

@0x-shanks 0x-shanks merged commit 4452409 into henkaku-center:membership-nft-v2 Apr 22, 2022
@0x-shanks 0x-shanks deleted the feature/lint-config branch April 22, 2022 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants