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

Config with semistandard eslint and passing all tests #51

Merged
merged 5 commits into from
Oct 1, 2019

Conversation

jimmychu0807
Copy link
Contributor

@jimmychu0807 jimmychu0807 commented Sep 30, 2019

Updated to use strict semistandard.

According to doc, there are quite some dev-dependencies to be installed to make this work.

@jimmychu0807 jimmychu0807 changed the title Config with standard-warn linting and passing all tests Config with semistandard and passing all tests Sep 30, 2019
@jimmychu0807 jimmychu0807 changed the title Config with semistandard and passing all tests Config with semistandard eslint and passing all tests Sep 30, 2019
@shawntabrizi
Copy link
Contributor

Should we add a follow up issue to enable CI on this repository?

@riusricardo
Copy link
Contributor

@shawntabrizi CI will be very helpful on this repo for testing builds. Are you thinking on creating React tests? or just want to validate that it is not broken.

@shawntabrizi
Copy link
Contributor

shawntabrizi commented Sep 30, 2019

See: #10

Ideally we create react tests, and even some more practical ones where we connect to the dev-node and make transactions??

@jimmychu0807 what do I need to do to use this linting?

@jimmychu0807
Copy link
Contributor Author

@shawntabrizi
You don't need to do anything, when running yarn start, it compile and lint your code.

If you want to let the linter auto-fix (which pretty much fix 90% of issues), run yarn semistandard --fix.

@jimmychu0807 jimmychu0807 merged commit 9a9ee34 into master Oct 1, 2019
@jimmychu0807 jimmychu0807 deleted the linting branch October 1, 2019 03:41
@JoshOrndorff
Copy link
Contributor

JoshOrndorff commented Oct 1, 2019

@jimmychu0807 Hope this isn't a dumb question, but I can't seem to get this working.

  1. Pull latest master
  2. Introduce some should-be linting errors (like missing semicolons, double-quoted strings, etc)
  3. Save files
  4. yarn start
  5. No errors or warnings in the terminal or console

I remember you previously said my attempt was only for editor integration is that true here too? If so, how will we be able to use this with CI?

Edit: Aha, I had to yarn install --dev first or else the linting was silently skipped.

@jimmychu0807
Copy link
Contributor Author

jimmychu0807 commented Oct 1, 2019

@JoshOrndorff

  • right, you need to do a yarn install, to install the new dependencies. So it works for you now?
  • I was wrong. With the new EXTEND_ESLINT=true, the linting check actually also reflects in browser and terminal. And semistandard by default returns error (not warning) when failing their tests.
  • you can also do yarn lint now just for linting. So we can put linting check as part of the CI workflow.

@JoshOrndorff
Copy link
Contributor

Yes it works for me now including browser and terminal. Great job!

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.

None yet

4 participants