-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
code style implementation #43
Conversation
* Add Prettier, config, ignore, scripts * Add ESLint, config, ignore, scripts * Add CI workflow * Update CONTRIBUTING.md
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/warengonzaga/css-text-portrait-builder/5AGGcXz1AgLwUCmwp521JwiPxqbN |
I think I kinda get why this happened now. Did you happen to do a Yarn Zero-Install, @warengonzaga? In that case, I think you forgot to include the
|
I'm trying to implement the Yarn's Zero Install but when I tried to apply gulp.js to the project it broke like hell. I guess the project is not ready for Zero Install (Plug n Play). I'm having an issue with that part. |
Huge thanks for the effort to improve the project, I really appreciate it. I'll review it now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution, please review my requested changes. My workflow is mostly on single quotes and 4 spaces indents. I don't know what the standard is but from my recent popular projects we are using 2 space indent so I guess that's good for this also. My only concern is the single quotes implementation I guess you need to reconfigure the prettier
I have config from the previous project I'll reference here so you can get an idea.
Hey, @decanTyme this is what we use from my previous project. Please use this as a reference. |
Yeah, 2 spaces are probably the way to go for any Node.js projects. Looks cleaner to me at least.
Got that. I'll also revert back to a |
Are you having issues right now? |
None so far with the code. Though sometimes Yarn SDKs get cranky and I have to regenerate or extensions won't work (again.) There's also Parcel sometimes not detecting changes in the
I guess I can take a look at that too. Exporting builds looks interesting and I might learn a thing or two before I fully migrate to Yarn. |
* Change ESLint config ext to json * Some minor patches Ruleset copied from https://github.com/warengonzaga/gathertown.js/blob/main/.prettierrc.json
@warengonzaga please take a look at the new changes (916b413), should have covered all your requests. Let me know if there's still issues. If none, I will mark this as ready and I guess all that's left after that is to properly configure Yarn's Zero Install starting with including |
One more note on this, the variable For the image resize, I don't think it can directly affect the
The current build I guess is not Plug n Play I remember I reverted it back after I got errors. @decanTyme |
Awesome, I'll review it again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, it is all good now.
Yep, I factored this one too. Exporting
Hmm. I guess it didn't roll back all the way, I still don't see any Anyhow, we'll leave those for another issue/pr I guess. |
Thanks, @decanTyme I'll merge this now! |
PR Includes:
Summary:
Adds some checks and automations for anyone looking to contribute code (no testing yet.) The ESLint config extends the eslint-config-google. Overwritten rules are of my own personal preference.
Also, since Yarn PnP is used, some contributors that might be using VSCode with Prettier and ESLint extensions installed might encounter issues such as failing to find their respective modules so I generated some editor SDKs for integration with VSCode. These extensions should continue to work within this workspace. Basically, they fail to find a
node_modules
folder so they error out without this.Lastly, I don't know much about this since I've only just recently migrated to Yarn [v1], but the
.pnp.cjs
file'spackageLocation
props have changed to my own dirs (e.g., from./.yarn/cache/...
to something like../../../../../C:/Users/<USER>/AppData/Local/Yarn/Berry/cache/
, is that what it's supposed to do?) since I did ayarn install
. Won't start without running it so I had no choice.p.s. Reminded me of those awesome ASCII rendering stuff, but this time with colors! So got a little excited and decided to help a little. Please do tell if there were some issues. Might add more PRs for new features/tests soon.